Im not sure how to explain this, so I will do it the only way I know how..
Here is the code:
What I want it to do is if you answer the wrong answer you get the question over again so as to answer it again....Code:#include <iostream> using namespace std; int main() {int answer; cout<<"what is 4+4:"; cin>>answer; cin.ignore(); if( answer<8) { cout<<"you are wrong please try again!\n"; } else if (answer>8) { cout<<"You are wrong please try again!\n";} else if(answer=8){ cout<<"You are right great job!\n";} cin.get();}
As I said I'm new to C++ as in I started last night 11/14/06 at 11PM.
Please go easy on me![]()
Thanks
-Fabrik8



LinkBack URL
About LinkBacks



