Q. Write the program with a maximum three line of code and that assign first five multiples of number to 5 variable and then print them.


You can understand by Watching video :-



Answer :-

a= 5
b,c,d,e,f = 1,2,3,4,5
print(a*b,a*c,a*d,a*e,a*f)

Output :-

5 10 15 20 25
>>> 


4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post