Computer Science, asked by TejasRaghava, 10 months ago

help me!!!!!!!!!!!!! 4th one

Attachments:

Answers

Answered by akshayd0104
1

Answer:

Understand the rule of divisible by 3 or divisible by 5

you get that sum of all digits when divisible by 3 the value is divisible by 3

and when the last digit of value is 0 or 5 it is divisible by 5

Explanation:

call two functions

1.DivisibleBY3

2.DivisibleBY5

if both returns true value is divisible by both 3 and 5

loop for either function and else it is neither divisible by any

Attachments:
Similar questions