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 / prakash kavar
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i+2);
i=i+2;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Who invented bcpl language?
What are type modifiers in c?
What is difference between %d and %i in c?
Why is c called "mother" language?
Is c call by value?
What are loops in c?
what is recursion in C
Describe newline escape sequence with a sample program?
What is header file definition?
Tell me is null always defined as 0(zero)?
Tell me when would you use a pointer to a function?
How can you increase the size of a dynamically allocated array?
What is wrong with this program statement?
What is size of union in c?
How a string is stored in c?