+ 1
check whether the given input number is divisible by 3 or else show a message âNumber is not divisible by 3. please assist
5 Answers
0
num = int(input())
if num % 3 ==0:
print("divisible by 3")
else:
print("Not divisible by 3")
+ 10
Hint: use the % (modulo) operator to check if a number is divisible by another.
+ 7
Attempts?
0
<!-- Created by SHYLOCK [#Be Happy ] -->
<!DOCTYPE html>
<html>
<head>
<title>Diwali Celebration</title>
</head>
<body>
<div class="circle">
<h1>Happy<br><span>Diwali</span></h1>
<div class="light"></div>
</div>
</body>
</html>
0
Use if else statement