Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Is c pass by value or reference?

0 Answers  


what type of language is C?

13 Answers   Microsoft,


#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }

15 Answers   Infosys,


What is the difference between text and binary i/o?

0 Answers  


Explain how do you determine whether to use a stream function or a low-level function?

0 Answers  


What is atoi and atof in c?

0 Answers  


What are data structures in c and how to use them?

0 Answers  


Explain modulus operator.

0 Answers  


Why c is a procedural language?

0 Answers  


What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture, Wipro,


swap 2 numbers without using third variable?

0 Answers   IBS,


If fflush wont work, what can I use to flush input?

0 Answers  


Categories