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 |
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 Answers Motorola, TCS, Wipro,
What is the most efficient way to count the number of bits which are set in a value?
how to impliment 2 or more stacks in a single dimensional array ?
What are the advantages of using new operator as compared to the function malloc ()?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is dynamic dispatch in c++?
difference between memcpy and strcpy
What are the types of assignment statements?
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
What are the functions to open and close file in c language?
Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments
What are valid signatures for the Main function?