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 |
#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer
Display this kind of output on screen. 1 0 1 1 0 1 3. Display this kind of output on screen. 1 1 0 1 0 1 4. Display this kind of output on screen. 1 1 0 1 0 1 5.Display this kind of output on screen. 1 2 3 4 5 6 7 8 9 10
which typw of errors ? & how to solve it ?
loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.
char* f() return "hello:"; void main() {char *str=f(); }
void main() { int i=5,y=3,z=2,ans; clrscr(); printf("%d",++i + --z + i++ + --i * ++y); i=5,y=3,z=2; ans=++i + --z + i++ + --i * ++y; printf("\n%d",ans); getch(); } Its output is 37 and 31.... Please explain me why its different How it works.....
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
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
I'm having trouble with coming up with the correct code. Do I need to put a loop? Please let me know if I'm on the right track and what areas I need to correct. I still don't have a good grasp on this programming stuff. Thanks =) The assignment was to write a program using string functions that accepts a coded value of an item and displays its equivalent tag price. The base of the keys: 0 1 2 3 4 5 6 7 8 9 X C O M P U T E R S Sample I/O Dialogue: Enter coded value: TR.XX Tag Price : 68.00
main() { char c; for(c='A';c<='Z';c++) getch(); }
printy(a=3,a=2)
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }