You are viewing a single comment's thread. Return to all comments →
int t,n,m,c; int wrappers,count;
scanf("%d",t);
for(int i =0;i
wrappers = n/c; count = wrappers; while (wrappers >= m) { wrappers = wrappers - m; count = count + 1; wrappers = wrappers + 1; } printf("%d",count);
}
/*The main logic is above u can compare it easily */
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 →
int t,n,m,c; int wrappers,count;
for(int i =0;i
}
/*The main logic is above u can compare it easily */