Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- float konwersja_na_cale(float meters)
- {
- return meters * 39.3700787;
- }
- float konwersja_na_stopy(float meters)
- {
- return meters * 3.28;
- }
- float konwersja_na_jardy(float meters)
- {
- return meters * 1.09;
- }
- int main()
- {
- float metry, cale, stopy, jardy;
- cout << "Podaj ilosc metrow: ";
- cin >> metry;
- cale = konwersja_na_cale(metry);
- stopy = konwersja_na_stopy(metry);
- jardy = konwersja_na_jardy(metry);
- cout << "Cale: " << cale << endl;
- cout << "Stopy: " << stopy << endl;
- cout << "Jardy: " << jardy << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement