Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / sandeep kumar yadav

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
clrscr();
while(i<=10)
{
printf("%d\n",i);
i+=2;
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is a newline escape sequence?

1070


Explain how can I convert a number to a string?

1143


What is the use of gets and puts?

1011


Explain bit masking in c?

1125


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2630


What is data types?

1068


how can use subset in c program and give more example

1979


What are external variables in c?

1089


FILE PROGRAMMING

2214


Is c procedural or functional?

1006


What are the advantages of union?

1060


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1235


What is union and structure?

1103


What are Macros? What are its advantages and disadvantages?

1143


Where static variables are stored in c?

1093