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 / ashish rajvanshi
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i=i+2)
printf("%d\n",i);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Why is extern used in c?
How do I copy files?
What is the use of a semicolon (;) at the end of every program statement?
Explain what does the format %10.2 mean when included in a printf statement?
Why do we need volatile in c?
How can you increase the size of a dynamically allocated array?
Do you know the use of fflush() function?
Do you know null pointer?
How many header files are in c?
What is a 'null pointer assignment' error?
What is the use of printf() and scanf() functions?
Explain the Difference between the New and Malloc keyword.
what does static variable mean?
Explain what are preprocessor directives?
C program to find all possible outcomes of a dice?