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

what is meant for variable not found?

3 Answers  


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

2 Answers  


who was the present cheif governor of reserve bank of india

6 Answers   State Bank Of India SBI,


Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.

1 Answers  


Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  






what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }

4 Answers  


I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.

1 Answers  


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  


write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;

0 Answers  


Why are memory errors hard to debug?

1 Answers  


#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


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

2 Answers   TCS,


Categories