#include <cstdlib>#include <iostream>using namespace std;int main(int argc, char *argv[]){ int a, b, c; string James; { cout << "Please enter a number between 1 and 5: " ; cin >> a; cout <<"" <<endl; cout <<"-----------------------------" <<endl; if (a == 0) { cout <<"0 = 0, so you get nothing :)" <<endl;} if (a < 0) { cout <<"No negatives!!!"<<endl;} if (a == 2) { cout <<"Your number is exacly 2" <<endl; } if ((2 > a) && (a > 0)) { cout << "Your number is below 2"<<endl; } if (a == 5) { cout << "Your number is 5"<<endl; } if (a > 5) { cout <<"I said enter numbers between 1 and 5, smarty :P" <<endl; } if ((a > 2) && (a <= 4)) { cout <<"You won! You had to enter a number between 2 and 4!!!" <<endl; } cout << "-----------------------------" <<endl; cout <<"" <<endl;}{ cout <<"Please enter a value between 6 and 10: " ; cin >> b; cout <<"" <<endl; cout <<"--------------------------------" <<endl; if (b == 7) {cout <<"Very well, this program works!" <<endl;} if (b < 6) { cout <<"Ah ah ah, don't enter values lower then 6, you mix programs :P " <<endl;} if ((b > 7) && (b < 10)) { cout <<"Very nice, you are a good tester! " <<endl; } if (b > 10) {cout <<"Too high!" <<endl;} if (b == 10) {cout <<"Ten is a good number!" <<endl;} if (b == 6) {cout <<"Six is a very good number!" <<endl;} cout <<"--------------------------------" <<endl; cout <<"" <<endl;} { cout <<"What is your name?" <<endl; cout <<"" <<endl; cout <<"Type your choise here: "; cin >> c; cout <<"" <<endl; cout <<"--------------------------------" <<endl; if (c == 1) {cout <<"Hello James!" <<endl;} if (c == 2) {cout <<"I don't like you now!" <<endl;} if (c > 2) {cout <<"Aye aye aye, I told you to enter 1 or 2!" <<endl; } if (c <= 0) {cout <<"What the hell is that!" <<endl; } cout <<"--------------------------------" <<endl; cout <<"" <<endl;} system("PAUSE"); return EXIT_SUCCESS;}