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
write a proram to reverse the string using switch case?
Why dont c comments nest?
What are void pointers in c?
write a programming in c to find the sum of all elements in an array through function.
How can you determine the maximum value that a numeric variable can hold?
How is null defined in c?
What is string in c language?
What is non linear data structure in c?
What is the use of getch ()?
What is bin sh c?
What are keywords in c with examples?
What is return type in c?
What functions are used in dynamic memory allocation in c?
Write a program that accept anumber in words
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?