Advertisement
Varasku

Przeliczanie jednostek z metry na coś C++

Feb 27th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstdlib>
  4. using namespace std;
  5. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  6.  
  7. int main(int argc, char** argv) {
  8.  
  9.  
  10.  
  11. cout << "Witaj informatyku LUL \n" << endl;
  12. float metry,cale,stopy,mile,jardy;
  13. cout <<"Podaj dlugosc w metrach: " ;
  14. cin >> metry;
  15. cout << "\nMetry: "<< metry;
  16. cale= metry*0.0256;
  17. cout << "\nCale: " << cale;
  18. stopy = metry*0.3048;
  19. cout << "\nStopy: " << stopy;
  20. mile = metry*0.00062137;
  21. cout << "\nMile: " << mile;
  22. jardy = metry*0.9144;
  23. cout << "\nJardy: " << jardy;
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement