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.



4.weight conversion: Write a program that will read weight in pounds and convert it into grams.pr..

Answer / 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

More C Interview Questions

What is the difference between memcpy and memmove?

0 Answers  


How to find a missed value, if you want to store 100 values in a 99 sized array?

0 Answers   Honeywell, Zomato,


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

0 Answers  


What is an example of enumeration?

1 Answers  






How do you search data in a data file using random access method?

0 Answers  


Toggle nth bit in a given integer - num

5 Answers   Qualcomm,


What is the advantage of a random access file?

0 Answers  


What is the difference between the expression “++a” and “a++”?

0 Answers  


What is variable initialization and why is it important?

0 Answers  


Explain what are preprocessor directives?

0 Answers  


what is structuer?

4 Answers   LG Soft, Wipro,


Categories