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.  
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
12
stdout
temperatura w skali Fahrenheita: 12 stopni F to -11stopni C