# Split the Teama

QUESTION

During the Physical Education hour, Mr. Mani has decided to conduct some team games. He wants to split the students in the class into equal sized teams. In some cases, there may be some students who are left out from teams and he wanted to use the left out students to assist him in conducting the team games.\n\nFor instance, if there are 50 students in the class and if the class has to be divided into 7 equal sized teams, 7 students will be there in each team and 1 student will be left out.\n\nPD asks your help to automate this team splitting task. Can you please help him out?\n\nInput Format:\nInput consists of 2 integers. The first integer corresponds to the number of students in the class and the second integer corresponds to the number of teams.\n\nOutput Format:\nRefer sample input and output for formatting specifications.\n\nSample Input and Output:\n[All text in bold corresponds to input and the rest corresponds to output].

“TESTCASE_1”: “60\n8\n###—###SEPERATOR—###—\n7\n4”, “TESTCASE_2”: “66\n10\n###—###SEPERATOR—###—\n6\n6”, “TESTCASE_3”: “54\n9\n###—###SEPERATOR—###—\n6\n0”, “TESTCASE_4”: “0\n###—###SEPERATOR—###—\n0”, “TESTCASE_5”: “0\n###—###SEPERATOR—###—\n0

``````#include <stdio.h>
int main()
{ int i,j;
scanf("%d\n",&i);
scanf("%d\n",&j);
printf("%d\n",i/j);
printf("%d\n",i%j);

return 0;
}``````