Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
336 B
5
Indexable
Never
#include <iostream>

using namespace std;

int main()

{
    int a,b,obw,pole;
   cout << "podaj bok a ";
cin >> a;
cout << "podaj bok b ";
cin >> b;

obw = (2 * a) + (2 * b);
pole = a * b;

cout << "obwod wyliczony z podanych bokow wynosi " << obw << endl;
cout << "Pole wyliczone z podanych bokow wynosi " << pole << endl;
return 0;
}