All pastes #472827 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2007-05-05 20:48 UTC
rendered paste body
#include <cstdlib>#include <iostream>using namespace std;int main(int argc, char *argv[]){    int number;    int twice;        cout << "Enter number: ";    cin >> number;    twice = number * 2;    cout << "You entered: " << number << "..\n" << number << " * 2 = " << twice << endl;    if(number<10){           cout << "The number you entered is smaller than 10.." << endl;           if(twice>10){                 cout << twice << " is bigger than 10 !" << endl;           }else if(twice==10){                 cout << twice << " equals 10 !" << endl;           }else{                 cout << twice << " is also smaller than 10 !" << endl;           }    } else if(number==10) {           cout << "The number you entered is exactly 10 !" << endl;           cout << "20 is bigger than 10 !" << endl;    } else {           cout << "The number you entered is bigger than 10 !" << endl;           cout << twice << "is bigger than 10 !" << endl;    }    system("PAUSE");    return EXIT_SUCCESS;}