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

What is default value of global variable in c?

949


Write a program to reverse a string.

1036


Explain how does free() know explain how much memory to release?

1023


Why is it usually a bad idea to use gets()? Suggest a workaround.

1716


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

1071


What is the explanation for prototype function in c?

935


Explain how can I avoid the abort, retry, fail messages?

998


How do we open a binary file in Read/Write mode in C?

1200


Explain bit masking in c?

1091


What is data structure in c language?

1072


What is the sizeof () a pointer?

933


Define and explain about ! Operator?

966


Is c a great language, or what?

1064


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

2624


Explain what is the benefit of using enum to declare a constant?

1035