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 / ajit kumar shrivastav

#include<conio.h>
#include<stdio.h>
void main();
{ flaoat num;
scanf(enter a number);
printf("%f",res);
res=num*2;
getch();
}

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the ANSI C Standard?

1327


What is the size of enum in bytes?

1134


Explain what is the difference between functions abs() and fabs()?

1255


What is the purpose of the preprocessor directive error?

1315


How can I manipulate individual bits?

1097


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2401


What is array within structure?

1171


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1297


What is the difference between variable declaration and variable definition in c?

1103


When should the volatile modifier be used?

1232


How will you write a code for accessing the length of an array without assigning it to another variable?

1094


Explain why c is faster than c++?

1124


What is use of #include in c?

1220


What does the file stdio.h contain?

1119


What are different types of variables in c?

1126