PRF01IF04 - IF

Write a program that allows user enter a number divisible by 5 and divisible by 2. The program must check and show result.

Example format: ouput input 

Example 1:

Please enter a number divisible by 5 but not divisible by 3:15
0 isn't a number divisible by 5 but not divisible by 3.

Please enter a number divisible by 5 and divisible by 2:15
15 isn't a number divisible by 5 and divisible by 2.

Example 2:

Please enter a number divisible by 5 and divisible by 2:10
Thank you.

Example 3:

Please enter a number divisible by 5 and divisible by 2:1
1 isn't a number divisible by 5 and divisible by 2.

Example 4:

Please enter a number divisible by 5 and divisible by 2:0
0 isn't a number divisible by 5 and divisible by 2.

 

 

 

 


Added by:khanhvh
Date:2020-10-26
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.