Minimum and maximum number of N chocolates after distribution among K students | Driver code
var n = 7 ; var k = 3 ; if ( n % k == 0 ) document . write ( n / k + " " + n / k ) ; else document . write ( ( n - ( n % k ) ) / k + " " + ( ( ( n - ( n % k ) ) / k ) + 1 ) ) ;