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 / ashish rajvanshi

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

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I make sure that my program is the only one accessing a file?

1225


Difference between strcpy() and memcpy() function?

1149


What is C language ?

1969


what do you mean by enumeration constant?

1014


What is structure padding and packing in c?

1073


What are the types of type specifiers?

1045


How can I read and write comma-delimited text?

1077


What is the difference between NULL and NUL?

1295


Write a program to print “hello world” without using semicolon?

1123


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1072


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1107


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

3179


How many keywords (reserve words) are in c?

1143


Why void is used in c?

1019


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2178