Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- class Triangle
- {
- public:
- float S(float a, float b, float c, float R) {
- return a * b * c * R / 4;
- }
- };
- int main()
- {
- int a, b, c, R;
- Triangle Triangle1;
- cout << "Enter a, b, c, R: ";
- cin >> a; cin >> b; cin >> c; cin >> R;
- cout << Triangle1.S(a, b, c, R) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement