Computer Science, asked by dineshayyappa567, 7 months ago

write a program to chect if the number entered my user is multiple of 5​

Answers

Answered by guest48
1

Explanation:

Check if a number is multiple of 5 without using / and %...

Method 1 (Repeatedly subtract 5 from n) Run a loop and subtract 5 from n in the loop while n is greater than 0. ...

Method 2 (Convert to string and check the last character) Convert n to a string and check the last character of the string. ...

Method 3 (Set last digit as 0 and use floating point trick)

Answered by asfiaahasan1
0

Answer:

plz, mark me brainleast... plz

Similar questions