Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- void tytul()
- {
- cout << endl;
- cout << "PROGRAM OBLICZAJACY POLE POWIERZCHNIE PROSTOKATA" << endl << endl;
- }
- float wczytaj(char bok)
- {
- float x;
- cout << "PODAJ DLUGOSC BOKU " << bok << " PROSTOKATA : ";
- cin >> x;
- return x;
- }
- void pole()
- {
- float a=wczytaj('A'),b=wczytaj('B');
- cout << "POLE POWIERZCHNI PROSTOKATA " << a << " I " << b << " JEST ROWNE : " << a*b;
- }
- int main()
- {
- tytul();
- pole();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement