I am programming this test commentor and I am trying to get it to restart again but I can't figure it out.
What do I put in and where?Code:#include <iostream> using namespace std; int main() { int percentage, i; cout<<"Input your test percentage: "; cin>>percentage; cin.ignore(); if (percentage<50){ cout<<"You failed. Study harder.\n"; } else if (percentage<60){ cout<<"You just passed. Study harder.\n"; } else if (percentage<70){ cout<<"You didn't do very well.\n"; } else if (percentage<80){ cout<<"You did quite well.\n"; } else if (percentage<90){ cout<<"You did excellent.\n"; } else if (percentage<100){ cout<<"You did very well.\n"; } else if (percentage>100){ cout<<"Who marked your test?\n"; } else if (percentage==100){ cout<<"You did perfect.\n"; } cin.get(); }



LinkBack URL
About LinkBacks


