Computer Science, asked by Anonymous, 3 months ago

Write a program to check whether a number is divisible by another number or not..

plzz answer this fast​

Answers

Answered by rajendradahate151
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 dinanathyadav1646
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