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
What is the ANSI C Standard?
What is the size of enum in bytes?
Explain what is the difference between functions abs() and fabs()?
What is the purpose of the preprocessor directive error?
How can I manipulate individual bits?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is array within structure?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is the difference between variable declaration and variable definition in c?
When should the volatile modifier be used?
How will you write a code for accessing the length of an array without assigning it to another variable?
Explain why c is faster than c++?
What is use of #include in c?
What does the file stdio.h contain?
What are different types of variables in c?