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

How can you increase the allowable number of simultaneously open files?

1090


What is getch?

1089


difference between object file and executable file

6641


What is property type c?

1045


What is 2 d array in c?

959


What is the difference between array and pointer?

966


Can we access the array using a pointer in c language?

995


How can a program be made to print the line number where an error occurs?

1036


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1228


What is meant by errors and debugging?

1056


Distinguish between actual and formal arguments.

1013


What is a program?

1184


What is 1f in c?

2570


Explain how do you convert strings to numbers in c?

1022


How main function is called in c?

1072