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............
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 |
what is meant for variable not found?
write a profram for selection sort whats the error in it?
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.
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }
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.
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
write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;
Why are memory errors hard to debug?
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?