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 / prakash kavar

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i+2);
i=i+2;
}
getch();
}

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can anyone suggest some site name..where i can get some good data structure puzzles???

2082


What are dangling pointers? How are dangling pointers different from memory leaks?

1304


What is a wrapper function in c?

1115


how many key words availabel in c a) 28 b) 31 c) 32

1076


How is null defined in c?

1151


Explain what is #line used for?

1061


What is the purpose of ftell?

1077


What is a spanning Tree?

1580


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1090


Explain About fork()?

1113


What do you mean by dynamic memory allocation in c?

1098


Why is c so powerful?

1111


What is a #include preprocessor?

1146


Do you know the use of 'auto' keyword?

1191


What are the advantages of external class?

1061