Advertisement
Josif_tepe

Untitled

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