The exam employee tries to distribute students evenly in the examination halls, if she knows that the number of students varies
Between 500 and 1000 and that:
1- If students are divided into two halls, one student remains without the hall
2- If students are distributed into three halls, one student remains without the hall
3- If students are distributed into four halls, one student will remain without the hall
4- If students are distributed into five halls, one student remains without the hall
5- If students are distributed into six halls, one student will be left without the hall
6- If students are divided into seven halls, no student will remain without the hall
Write a program that allows you to see the actual number of students.

Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 22, 2020, 6:48 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 22, 2020, 6:58 PM EST