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 I pad a string to a known length?

988


Implement bit Array in C.

1108


Is multithreading possible in c?

959


Should I learn c before c++?

1187


What are the two forms of #include directive?

1121


How do shell structures work?

1082


What is the use of volatile?

1054


What is the difference between union and structure in c?

1107


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1900


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1079


What are dangling pointers in c?

1145


What is a stream?

1093


How can I insert or delete a line (or record) in the middle of a file?

991


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2525


Do you know the use of fflush() function?

1024