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
Explain how can I make sure that my program is the only one accessing a file?
Difference between strcpy() and memcpy() function?
What is C language ?
what do you mean by enumeration constant?
What is structure padding and packing in c?
What are the types of type specifiers?
How can I read and write comma-delimited text?
What is the difference between NULL and NUL?
Write a program to print “hello world” without using semicolon?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
How many keywords (reserve words) are in c?
Why void is used in c?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell