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 / 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 |
? ???Mirror Mirror on the wall????????
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
what is computer
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]); }
What is queue in c?
When should the volatile modifier be used?
A C E G H +B D F A I ------------ E F G H D
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
What is the description for syntax errors?
Please list all the unary and binary operators in C.
What is getch () for?