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...


4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.



4.weight conversion: Write a program that will read weight in pounds and convert it into grams.pr..

Answer / vignesh1988i

i#includ<tdio.h>
#include<conio.h>
void main()
{
float pounds , grams;
clrscr();
printf("enter ur weight in pounds :");
scanf("%f",&pounds);
printf("%f pounds is equivalent to %f
grams ",pounds,pounds*454);
getch();
}

thank u

Is This Answer Correct ?    9 Yes 6 No

Post New Answer

More C Interview Questions

? ???Mirror Mirror on the wall????????

1 Answers   channel V, DPI,


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

0 Answers   ADP,


what is computer

4 Answers  


write a program for size of a data type without using sizeof() operator?

22 Answers   HCL, IBM,


main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }

9 Answers   TCS,


What is queue in c?

0 Answers  


When should the volatile modifier be used?

0 Answers  


A C E G H +B D F A I ------------ E F G H D

1 Answers   Infosys,


What are near, far and huge pointers?

0 Answers   Hexaware, Thomson Reuters, Virtusa,


What is the description for syntax errors?

0 Answers  


Please list all the unary and binary operators in C.

3 Answers  


What is getch () for?

0 Answers  


Categories