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")
Output

Enter first number :100

 Enter second number2

 First number is divsible by second number

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad