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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

write a proram to reverse the string using switch case?

2917


Why dont c comments nest?

1033


What are void pointers in c?

984


write a programming in c to find the sum of all elements in an array through function.

2156


How can you determine the maximum value that a numeric variable can hold?

1215


How is null defined in c?

1141


What is string in c language?

1131


What is non linear data structure in c?

1007


What is the use of getch ()?

1062


What is bin sh c?

1017


What are keywords in c with examples?

1073


What is return type in c?

1119


What functions are used in dynamic memory allocation in c?

1061


Write a program that accept anumber in words

1742


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1242