Answering Yes or No in C++...using only stdio.h and
conio.h..........help me please...?


here's must be the output of the program:

Screen A

Exam No. items Score
1 20 20
2 35 35

Another Entry? [Y] or [N] :



Screen B:

Record No. Student's Name:
1 Fernando Torres
2 Chuck Norris


Note: if you press Y, the program must repeat the procedure
in screen A, then if N, the program must proceed to the
screen B....Please Help me out............



Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here&..

Answer / nipun

You can use while loop for this. Insert your code for screen
A in the while loop and just let it run if the user enters
a 'Y' and if the user choses 'N' then go to screen B out of
the loop

Or
you can use label:
ex:
main()
{
code....
......

label:
code for screen A...
......
......
printf("Another Entry? [Y] or [N] :");
scanf("%s", &op);
if(choice=='y' || choice=='Y')
{
goto label;
}
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C C++ Errors Interview Questions

How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis

0 Answers  


What are the different types of errors in C and when they occur?

4 Answers  


what is syntax error?

3 Answers  


UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....

5 Answers  


How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)

0 Answers  






what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,


what is meant for variable not found?

3 Answers  


write a profram for selection sort whats the error in it?

2 Answers  


full c programming error question based problem

3 Answers   HCL, TCS,


To generate the series 1+3+5+7+... using C program

18 Answers  


Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .

2 Answers  


I am using Qt 5.6 during compilation it stops and gives error about Qmake The process "C:QtQt5.6.35.6.3msvc2015_64inqmake.exe" crashed. Error while building/deploying project untitled1 (kit: Desktop Qt 5.6.3 MSVC2015 64bit) When executing step "qmake"

0 Answers  


Categories