Write a program to check whether a number is divisible by another number or not..
plzz answer this fast
Answers
Answered by
1
Explanation:
Logic to check divisibility of a number
C supports a modulo operator % , that evaluates remainder on division of two operands. ... Input a number from user. Store it in some variable say num . To check divisibility with 5, check if(num % 5 == 0) then num is divisible by 5
Answered by
0
Answer:
If the last digit is even, the number is divisible by 2. If the sum of the digits is divisible by 3, the number is also. If the last two digits form a number divisible by 4, the number is also. If the last digit is a 5 or a 0, the number is divisible by 5.
Explanation:
this is the answer
Similar questions
Science,
1 month ago
Math,
1 month ago
Economy,
1 month ago
Social Sciences,
3 months ago
English,
3 months ago
Math,
9 months ago
Computer Science,
9 months ago