You are viewing a single comment's thread. Return to all comments →
Following code works for me:
wrappers = n/c;
count = wrappers;
while (wrappers >= m) {
wrappers = wrappers - m;
count = count + 1;
wrappers = wrappers + 1;
}
System.out.println (count);
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
Following code works for me:
wrappers = n/c;
count = wrappers;
while (wrappers >= m) {
wrappers = wrappers - m;
count = count + 1;
wrappers = wrappers + 1;
}
System.out.println (count);