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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between malloc() and calloc() function?

1097


What is the total generic pointer type?

1208


How can you increase the size of a dynamically allocated array?

1231


Write a program to print ASCII code for a given digit.

1125


Explain argument and its types.

1111


What is the difference between memcpy and memmove?

1083


Explain how does free() know explain how much memory to release?

1134


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8114


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1067


Why string is used in c?

1047


How do we declare variables in c?

1112


What are header files why are they important?

1151


Is c easier than java?

1120


When can you use a pointer with a function?

1148


Explain enumerated types in c language?

1099