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 |
Explain how do you print only part of a string?
Why do we use int main instead of void main in c?
what are the advantage and disadvantage of recursion
What is output redirection?
what is the difference between NULL('\0') and 0?
x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????
what is data structure.in linear and non linear data structures which one is better?Explain
Write a program to accept a character & display its corrosponding ASCII value & vice versa?
What is a method in c?
please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning