Question #303242

The function accepts two positive integers ‘r’ and ‘unit’ and a positive integer array ‘arr’ of size ‘n’ as its argument ‘r’ represents the number of rats present in an area, ‘unit’ is the amount of food each rat consumes and each ith element of array ‘arr’ represents the amount of food present in ‘i+1’ house number, where 0 <= i


Expert's answer

public class Main {
    public static void function(int r, int unit, int[]arr, int n){}
}
LATEST TUTORIALS
APPROVED BY CLIENTS