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
Answers were Sorted based on User's Feedback
Answer / michael
Enter Number
1
Enter numbers
234
Enter numbers
34-5
Enter numbers
340thanks!
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / nagendra kumar
hat 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
answer: thanks
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sansiri
Enter Number!
1
Enter numbers/n2 3 4
Enter numbers/n3 4 -5
Enter numbers/n3 4 0
thanks!
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / susan
It will goes to infinite loop i.e. while of true condition executes if a!=0
Is This Answer Correct ? | 0 Yes | 0 No |
errors are known as?
3 Answers EX, State Bank Of India SBI,
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 .
full c programming error question based problem
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
I'm having trouble with coming up with the correct code. Thank You!! The assignment was to write a program using string functions that accepts a price of an item and displays its coded value. The base of the keys: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 Sample I/O Dialogue: Enter Price: 489.50 Coded Value: PRS.UX
Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL
To generate the series 1+3+5+7+... using C program
printy(a=3,a=2)
Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.
quoroum of computer languages?
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); }