Advertisement
Josif_tepe

Untitled

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