WAP to enter a number and find
whether it is a multiple of 19.
Answers
Answered by
0
Answer:
Using python
Explanation:
def isMultipleof5(n):
while ( n > 0 ):
n = n - 5
if ( n == 0 ):
return 1
return 0
# Driver Code
i = 19
if ( isMultipleof5(i) == 1 ):
print (i, "is multiple of 5")
else:
print (i, "is not a multiple of 5")
Similar questions
Math,
4 months ago
Computer Science,
4 months ago
Science,
4 months ago
Math,
8 months ago
Social Sciences,
8 months ago
Math,
1 year ago
Science,
1 year ago
English,
1 year ago