Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int number;
- char answer;
- cout<<"Enter a number guiz\n";
- cin>> number;
- cin.ignore();
- cout<<"Was "<< number <<" your Number?""\n";
- cin>> answer;
- if (answer == n) {
- cout<<"I'm sorry about that";
- }
- else {
- cout<<"You're damn right it was";
- }
- cin.get();
- number = number + 5;
- cout<<"I just added 5 to your number, and it is now "<< number;
- cin.get();
- if (number < 100 ) {
- cout<<"It was less than 100";
- }
- else if ( number == 100 ) {
- cout<<"This number equals 100";
- }
- else {
- cout<<"This number is greater than 100";
- }
- cin.get();
- }
Add Comment
Please, Sign In to add comment