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

Why is extern used in c?

1144


How do I copy files?

1106


What is the use of a semicolon (;) at the end of every program statement?

1585


Explain what does the format %10.2 mean when included in a printf statement?

1411


Why do we need volatile in c?

1228


How can you increase the size of a dynamically allocated array?

1231


Do you know the use of fflush() function?

1103


Do you know null pointer?

1075


How many header files are in c?

1064


What is a 'null pointer assignment' error?

1249


What is the use of printf() and scanf() functions?

1188


Explain the Difference between the New and Malloc keyword.

1186


what does static variable mean?

1164


Explain what are preprocessor directives?

1124


C program to find all possible outcomes of a dice?

2410