Advertisement
kot_mapku3

1 B

Jun 2nd, 2020
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.     double a, b, c;
  9.  
  10.     cin >> a >> b >> c;
  11.  
  12.     cout.precision(10);
  13.     cout << fixed << (a + b) * c;
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement