Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int pole_trojkata(int a, int h)
- {
- return a*h/2;
- }
- int x, y;
- int main()
- {
- cout << "Podaj dlugosc podstawy: "; cin>>x;
- cout << "Podaj wysokosc: "; cin>>y;
- cout<<"Pole trojkata wynosi: "<<pole_trojkata(x,y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment