Skip to content

Instantly share code, notes, and snippets.

@d-fect
Created May 6, 2018
Embed
What would you like to do?
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