Josif_tepe

Untitled

Feb 26th, 2026
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(int argc, const char * argv[]) {
  4.     int a;
  5.     cin >> a;
  6.    
  7.     int b;
  8.     cin >> b;
  9.    
  10.     cout << 2*a + 2*b <<endl;
  11.    
  12.    
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment