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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz