can quite grasp how to turn it into a loop no matter how i read the instruction.. >_< can you guys teach me.. :) the output of my program looks like this..
This is the output:
Name:
Exam:
Quiz#1:
Quiz#2:
Assignment:
Seatwork:
Attendance:
Term Grade:
Remark:
How can i turn it into this:
Name:
Exam:
Quiz#1:
Quiz#2:
Assignment:
Seatwork:
Attendance:
Term Grade:
Remark:
Try Again [Y/N]:
Thank you for using my program...
~~~ Looping this program that if you press "Y" at the end it will clrscr and then start at the name again and if you press the "N" then it will only display.. "Thank you for using my program..." at the end..
any kind of guide would help me alot in understanding how it works.. :) thank you very much in advance!!!
Guys correct me if im wrong im kinda new on Turbo C.. dont have turbo c on may laptop cos it cant run on windows 8 -___-"... and btw guys if "again" is how you continue the loop what is the counter part? so i will put it on the "N" to display "Thank you for using my program..."
Your initial question asked how to continually loop while the user typed 'Y' or 'y' to the question "Try Again [Y/N]". So I provided the answer for your user input (a char) into a variable that the program checks to decide whether to loop again or not. So it will loop while the variable contains either the character 'Y' or 'y'. There's no counter, as it isn't a for(...) loop, its either a while or do | while loop.