Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- int a, b;
- cout << "Unesite prvu stranicu pravougaonika " << endl;
- cin >> a;
- cout << "Unesite drugu stranicu pravougaonika " << endl;
- cin >> b;
- cout << "Obim pravougaonika je: " << 2 * a + 2 * b << endl;
- cout << "Povrsina pravougaonika je: " << a * b << endl;
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement