can please someone teach me how to create this program using
while statement.. this is the output should look like
0
2
4
6
8
10
-thanks.. :) need it asap...
Answer Posted / ajit kumar shrivastav
#include<conio.h>
#include<stdio.h>
void main();
{ flaoat num;
scanf(enter a number);
printf("%f",res);
res=num*2;
getch();
}
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
How can I pad a string to a known length?
Implement bit Array in C.
Is multithreading possible in c?
Should I learn c before c++?
What are the two forms of #include directive?
How do shell structures work?
What is the use of volatile?
What is the difference between union and structure in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What are dangling pointers in c?
What is a stream?
How can I insert or delete a line (or record) in the middle of a file?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Do you know the use of fflush() function?