Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Section Number: 02
- //Assignment #: 1
- //Author: Evan Koking
- //Date: 09/06/12
- #include <stdio.h>
- main ()
- {
- //Variables
- float tempF, tempC, weightP, weightK;
- //Asks user to input Farenheit value
- printf("Please enter the Farenheit Temperature to be converted...\n");
- scanf("%f", &tempF);
- //Converts Farenheit value into Celcius value
- tempC = ((tempF - 32)/(1.8));
- //Displays converted Celcius value
- printf("Your Temperature in Celcius is... %f\n", tempC);
- system("PAUSE");
- printf("Please enter the amount of Pounds to be converted...\n");
- scanf("%f", &weightP);
- weightK = (weightP * 0.4536);
- printf("Your amount in Kilograms is... %f\n", weightK);
- system("PAUSE");
- return 0;
- }
Add Comment
Please, Sign In to add comment