PRF01IF03 - IF

no tags 

 

Write a program that allows user enter a number divisible by 5 but not divisible by 3. 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

15 isn't a number divisible by 5 but not divisible by 3.

Please enter a number divisible by 5 but not divisible by 3:5

Thank you.

Please enter a number divisible by 5 but not divisible by 3:1

1 isn't a number divisible by 5 but not divisible by 3.

Please enter a number divisible by 5 but not divisible by 3:0

0 isn't a number divisible by 5 but not divisible by 3.

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

Example 2:

Please enter a number divisible by 5 but not divisible by 3:5
Thank you.

Example 3:

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

Example 4:

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

 

 

 



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