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 cost = 0;
- while(n % 4 != 0) {
- n += 1;
- cost += 9;
- }
- cout << cost << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement