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

Are the expressions * ptr ++ and ++ * ptr same?

1086


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

2045


What are different storage class specifiers in c?

1038


What is a example of a variable?

947


What is the use of static variable in c?

1041


What is the use of getch ()?

1033


What is typedef example?

1110


What is malloc and calloc?

1003


What is scanf_s in c?

1063


What is the purpose of sprintf() function?

1052


What is function in c with example?

1085


Explain how do you view the path?

1085


How can I invoke another program or command and trap its output?

1045


Is c is a high level language?

1123


What are the different types of control structures in programming?

1080