Skip to content

Instantly share code, notes, and snippets.

@d-fect
Created May 6, 2018 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-fect/8a0c86477ab66ea7451d7920c2b28beb to your computer and use it in GitHub Desktop.
Save d-fect/8a0c86477ab66ea7451d7920c2b28beb to your computer and use it in GitHub Desktop.
Beginning C++ Section 4 Challenge
#include <iostream>
int main()
{
int favourite_number = 0;
std::cout << "Please enter your favourite number between 1 and 100: ";
std::cin >> favourite_number;
std::cout << "Amazing!! That's my favourite number too!" << std::endl;
std::cout << "No really!!, " << favourite_number << " is my favourite number!" << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment