Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float na_cale(float m)
- {
- return m*39.37;
- }
- float na_jardy(float m)
- {
- return m*1.0936;
- }
- void na_mile(float m)
- {
- //float wynik=m*.0006213;
- //cout<<"W calach: "<<wynik <<endl;
- cout<<"W calach: "<< m*.0006213<<endl;
- }
- int main()
- {
- float metry;
- cout << "Podaj liczbe metrow: " ;
- cin>>metry;
- cout<<"W calach: "<<na_cale(metry)<<endl;
- cout<<"W milach: "<<na_jardy(metry)<<endl;
- na_mile(metry);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement