fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int f;
  6. cout << "Temperatura w skali Fahrenheita: ";
  7. cin >> f;
  8. cout << f <<" stopni F to " << (f-32)*5/9;
  9. cout << " stopni C" << endl;
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Temperatura w skali Fahrenheita: 32766 stopni F to 18185 stopni C