/* Program to use integer division and modulus operator */

#include <stdio.h>

int main()
{
   int kids,candies;

   printf("Give the number of candies and children:");
   scanf("%d %d", &candies,&kids);

   printf("Each kid gets: %d pieces of candy\n", (candies / kids));
   printf("Remaining pieces of candy are %d\n", (candies % kids) );

   return(0);
}
