Rofl, I've tried it.. My first program: #include
using namespace std;
int main()
{
int thisisanumber;
cout<<"Please Enter a number: ";
cin>> thisisanumber;
cin.ignore();
if (thisisanumber == 3) {
cout<<"You picked the best number ever!!\n";
}
else if (thisisanumber>0) {
thisisanumber = thisisanumber* 2;
cout<<"You entered: "<< thisisanumber <<"\n";
thisisanumber = thisisanumber/2;
cout<<"..Just kidding, you entered: "<< thisisanumber <<"\n";
}
else if(thisisanumber<0) {
cout<<"Don't be so Negative!=P\n";
}
else {
cout<<"You have to be joking, who enters 0 as a number";
}
cin.get();
}
By the way, I'm 13. I know pascal, and Delphi though!