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 / 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 how do you determine the length of a string value that was stored in a variable?

1148


What is #ifdef ? What is its application?

1103


Are negative numbers true in c?

1054


What are the functions to open and close file in c language?

1196


Is there any demerits of using pointer?

1066


how to create duplicate link list using C???

2555


Why is c used in embedded systems?

1113


When can you use a pointer with a function?

1057


Give me the code of in-order recursive and non-recursive.

1367


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1233


What is the difference between typedef and #define?

1050


What are pragmas and what are they good for?

988


Is it better to use malloc() or calloc()?

1106


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2188


What are c identifiers?

1087