Guest User

Untitled

a guest
Oct 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. //Section Number: 02
  2. //Assignment #: 1
  3. //Author: Evan Koking
  4. //Date: 09/06/12
  5.  
  6. #include <stdio.h>
  7.  
  8. main ()
  9. {
  10. //Variables
  11. float tempF, tempC, weightP, weightK;
  12.  
  13. //Asks user to input Farenheit value
  14. printf("Please enter the Farenheit Temperature to be converted...\n");
  15.  
  16. scanf("%f", &tempF);
  17.  
  18. //Converts Farenheit value into Celcius value
  19. tempC = ((tempF - 32)/(1.8));
  20.  
  21. //Displays converted Celcius value
  22. printf("Your Temperature in Celcius is... %f\n", tempC);
  23.  
  24. system("PAUSE");
  25.  
  26. printf("Please enter the amount of Pounds to be converted...\n");
  27.  
  28. scanf("%f", &weightP);
  29.  
  30. weightK = (weightP * 0.4536);
  31.  
  32. printf("Your amount in Kilograms is... %f\n", weightK);
  33.  
  34. system("PAUSE");
  35.  
  36. return 0;
  37. }
Add Comment
Please, Sign In to add comment