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


Please Help Members By Posting Answers For Below Questions

Explain the Difference between the New and Malloc keyword.

908


where are auto variables stored? What are the characteristics of an auto variable?

870


In C, What is the #line used for?

1594


What is the importance of c in your views?

854


how to build a exercise findig min number of e heap with list imlemented?

1875


How can my program discover the complete pathname to the executable from which it was invoked?

887


What is the difference between ‘g’ and “g” in C?

3492


Why we use stdio h in c?

820


What are the features of the c language?

876


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

837


Can a pointer be static?

851


How can I find out how much free space is available on disk?

869


What is the use of extern in c?

874


Describe the modifier in c?

902


How can I open a file so that other programs can update it at the same time?

940