fork(1) download
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4. using namespace std;
  5. int main()
  6. {
  7. int stopy = 0; //ilosc stóp
  8.  
  9. float metry = 0; // ilosc metrów
  10. float przelicznik = 0.3; // przelicnzik stopy na metry
  11.  
  12. cout << "podaj wysokosc w stopach ";
  13. cin >> stopy;
  14.  
  15. metry = stopy * przelicznik;
  16. cout << "\n" ;
  17.  
  18. cout << stopy << "stop to jest :"
  19. << metry << "metrów\n" ;
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 3300KB
stdin
6
stdout
podaj wysokosc w stopach 
6stop to jest :1.8metrów