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 / sandeep kumar yadav
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
clrscr();
while(i<=10)
{
printf("%d\n",i);
i+=2;
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain what is a newline escape sequence?
Explain how can I convert a number to a string?
What is the use of gets and puts?
Explain bit masking in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is data types?
how can use subset in c program and give more example
What are external variables in c?
FILE PROGRAMMING
Is c procedural or functional?
What are the advantages of union?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is union and structure?
What are Macros? What are its advantages and disadvantages?
Where static variables are stored in c?