Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x;
- cin >> x;
- int prvo_nivo = x;
- int vtoro_nivo = 2 * prvo_nivo;
- int treto_nivo = 2 * vtoro_nivo;
- int cetvrto_niv = 2 * treto_nivo;
- cout << prvo_nivo + vtoro_nivo + treto_nivo + cetvrto_niv << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement