daily pastebin goal
2%
SHARE
TWEET

Laba_5

a guest Dec 14th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "pch.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. class Triangle
  7. {
  8. public:
  9.     float S(float a, float b, float c, float R) {
  10.         return a * b * c * R / 4;
  11.     }
  12. };
  13.  
  14. int main()
  15. {
  16.     int a, b, c, R;
  17.     Triangle Triangle1;
  18.     cout << "Enter a, b, c, R: ";
  19.     cin >> a; cin >> b; cin >> c; cin >> R;
  20.     cout << Triangle1.S(a, b, c, R) << endl;
  21.  
  22.     return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top