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

a program that can input number of records and can view it again the record

1861


What is LINKED LIST? How can you access the last element in a linked list?

1014


Who developed c language?

1035


What is linear search?

1085


i want to know the procedure of qualcomm for getting a job through offcampus

2406


in iso what are the common technological language?

2046


What is s or c?

1005


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1255


Which of these functions is safer to use : fgets(), gets()? Why?

1041


Is c# a good language?

956


what are non standard function in c

1846


What is a function in c?

1480


What is a pointer and how it is initialized?

1076


What are the types of data files?

1143


explain how do you use macro?

1096