Programming Examples

Python program to check divisibility of a number


Program to check divisibility of a number 

Solution

num1=int(input("Enter first number :"))
num2=int(input(" Enter second number"))
remainder=num1%num2
if remainder==0:
                print(" First number is divsible by second number")
else:
                print(" First number is not divisible by second number")
▶ RUN

Output/ Explanation:

Enter first number :100

 Enter second number2

 First number is divsible by second number

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad