malek sh

malek sh

  • NA
  • 17
  • 2k

Calculate the number of students

Nov 22 2020 3:45 PM
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.

Answers (2)