Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- cout << "Podaj dlugosc boku trojkata rownobocznego: ";
- double a, h;
- cin >> a;
- h = pow(3, 0.5) * a / 2;
- cout << "Wysokosc tego trojkata wynosi " << h << ", a jego pole to " << a * h / 2 << endl;
- cout << "a^5 wynosi " << pow(a, 5) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement