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 |
Why are memory errors hard to debug?
What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf("%d",&a); while(a=!0) { printf("Enter numbers/n"); scanf("%d%d%d",&b,&c,&d); a=a*b*c*d; } printf("thanks!"); getche(); Entering numbers are a=1,b=2,c=3,d=4 b=3,c=4,d=-5 b=3,c=4,d=0
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
what is syntax error?
difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?
errors are known as?
3 Answers EX, State Bank Of India SBI,
Declaration of Cube Guys please help me.. Is this a right way to declare cube.? If i Compile it. It Says: Cube undeclared what should i do? Please help \thanks in advanced #include<stdio.h> #include<math.h> #include<conio.h> main( ) { float x,y; while(x++<10.0) { printf("Enter Number:"); scanf("%d", &x); y = cube(x); printf("%f %f %f \n", x,pow(x,2),y); cube(x); } { float x; float y; y = x*x*x; } getch(); return (y); }
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
What are the different types of errors in C and when they occur?
quoroum of computer languages?
what is meant by linking error? how can i solve it? if there is a linking error " unable to open file 'cos.obj'? then what should i do?