Computer Science, asked by ssanjib479, 4 months ago

write a program whether a number is divisible by 5 or not​

Answers

Answered by llSᴡᴇᴇᴛHᴏɴᴇʏll
2

Answer:

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.

Similar questions