write a program to chect if the number entered my user is multiple of 5
Answers
Answered by
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
0
Answer:
plz, mark me brainleast... plz
Similar questions
Geography,
3 months ago
CBSE BOARD X,
3 months ago
Accountancy,
7 months ago
English,
7 months ago
Biology,
1 year ago