Minimum and maximum number of N chocolates after distribution among K students | Driver code
< ? php $ n = 7 ; $ k = 3 ; if ( $ n % $ k == 0 ) echo $ n / $ k . " ▁ " . $ n / $ k ; else echo ( ( $ n - ( $ n % $ k ) ) / $ k ) . " ▁ " . ( ( ( $ n - ( $ n % $ k ) ) / $ k ) + 1 ) ; ? >