#include <iostream> //declaring shit*/ using namespace std; /*we need this to provide cout and cin*/ int main

() { int number; //well that's shite - it looks just like int main() */ for (number=0;number < 5;) { cout<<"Hello World! OK input a number less than 100 now\n"; cin>> number; cin.ignore(); if (number >= 100 ) {cout<<"Too big - WANKER\n";} else if (number == 99) {cout<<"That was close\n";} else {cout<<"Well woop-de-do "<< number <<" was entered\n";} //cin.get();*/ /*waits fot return*/; if (number >= 5 ) {cout<<"OK "<< number <<" was entered. I can stop now\n";} } cout<<"ORRRRRK "<< number <<" was entered. I can stop now\n"; }

Sign up to vote on this title
UsefulNot useful