You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//In olden days, distributing candies evenly among friends seemed to be a challenge, but nowadays it can be easily checked using simple arithmetic operations.
import java.util.Scanner;
public class CandyDistribution {
public static void main(String[] args) throws java.lang.Exception {