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",£s);
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
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is a nested formula?
Can we declare variable anywhere in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Tell us something about keyword 'auto'.
Explain how are 16- and 32-bit numbers stored?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
In C, What is the #line used for?
What is the difference between array and linked list in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Does c have enums?
What is c token?
How is a null pointer different from a dangling pointer?
What is c value paradox explain?
How do I use void main?