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