Advertisement
Josif_tepe

Untitled

Jan 26th, 2024
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int x;
  5.     cin >> x;
  6.    
  7.     int p;
  8.     cin >> p;
  9.    
  10.     int c = ((p + x) / 2) * 7;
  11.     cout << c << endl;
  12.    
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement