mahmud_bhai

temp converter

Mar 25th, 2020 (edited)
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class ConvertTempurature{
  5. public:
  6. float Fahrenheit(float C){
  7.  
  8. return ((9*(C/5)+32));
  9. }
  10. };
  11. main()
  12. {
  13. ConvertTempurature ConvertTempurature1;
  14.  
  15. cout << "celcius to Fahrenheit" << ConvertTempurature1.Fahrenheit(1);
  16.  
  17.  
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment