d2 - Divisible by 2,3,0 and 5 - Free Source Code

Divisible by 2,3,0 and 5 – Free Source Code

Posted on

d2 - Divisible by 2,3,0 and 5 - Free Source Code

QUEZON CITY POLYTECHNIC UNIVERSITY
673 Quirino Freeway, Barangay San Bartolome, Novaliches, Quezon Metropolis

5. There are some strategies that Mathematician use to know if a quantity is divisible by one other quantity. Some guidelines are acknowledged under.

2 The final digit of the quantity have to be divisible by 2.
3 The sum of the digits when added have to be divisible by 3 (works for at the very least 2 digit numbers).
5 The final digit should finish with zero or 5.

With the foundations above, write a program that enable a person to enter a numeric worth increased than 9 and fewer than 10,000 (most of four digits solely) and can establish if that quantity is divisible by 2, Three and/or 5.


Source link