Advertisement
AdamBB

Square area

Feb 17th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <windows.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.   int a;
  10.   int b;
  11.   cout << "Podaj bok a: ";
  12.   cin >> a;
  13.   cout << "Podaj bok b: ";
  14.   cin >> b;
  15.   cout << "Pole prostokąta wynosi: " << a * b << endl;
  16.   cout << "Obwód prostokąta wynosi: " << (a + b) * 2 << endl;
  17.   system("PAUSE");
  18.   return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement