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 / rameshwari
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i);
i=i+2;
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is default value of global variable in c?
Write a program to reverse a string.
Explain how does free() know explain how much memory to release?
Why is it usually a bad idea to use gets()? Suggest a workaround.
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is the explanation for prototype function in c?
Explain how can I avoid the abort, retry, fail messages?
How do we open a binary file in Read/Write mode in C?
Explain bit masking in c?
What is data structure in c language?
What is the sizeof () a pointer?
Define and explain about ! Operator?
Is c a great language, or what?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
Explain what is the benefit of using enum to declare a constant?