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
Explain the difference between malloc() and calloc() function?
What is the total generic pointer type?
How can you increase the size of a dynamically allocated array?
Write a program to print ASCII code for a given digit.
Explain argument and its types.
What is the difference between memcpy and memmove?
Explain how does free() know explain how much memory to release?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Why string is used in c?
How do we declare variables in c?
What are header files why are they important?
Is c easier than java?
When can you use a pointer with a function?
Explain enumerated types in c language?