top of page

Program #004

Find Five Multiples of n

# Write a program to assign five multiples of any given number to five variables

# (write only three lines of code)

num = int( input(“ Enter any number :”))

m1, m2, m3, m4, m5 = num, num*2, num*3, num*4, num*5

print(“Five Multiples of “, num , “are “, m1, m2, m3, m4, m5 )


# Output:-


Enter any number : 8

Five Multiples of 8 are 8 16 24 32 40

bottom of page