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

write a program for the normal snake games find in most of the mobiles.

2307


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1309


Explain what is the heap?

1100


What is boolean in c?

1150


What is nested structure?

1095


What is #line in c?

1072


What are the 4 types of functions?

1108


How many levels of indirection in pointers can you have in a single declaration?

1142


How can I read a binary data file properly?

1245


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1163


How can you access memory located at a certain address?

1161


When is a null pointer used?

1168


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1765


When is the “void” keyword used in a function?

1578


What is atoi and atof in c?

1133