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 |
What is the difference between memcpy and memmove?
How to find a missed value, if you want to store 100 values in a 99 sized array?
write a c program to accept a given integer value and print its value in words
4 Answers Vernalis, Vernalis Systems,
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is an example of enumeration?
How do you search data in a data file using random access method?
Toggle nth bit in a given integer - num
What is the advantage of a random access file?
What is the difference between the expression “++a” and “a++”?
What is variable initialization and why is it important?
Explain what are preprocessor directives?
what is structuer?