Computer Science, asked by jasleen070790, 5 months ago

write a program to print square of numbers between 12 to 17 with output in python​

Answers

Answered by TheBrainlyKing1
1

\bold{\red{explain \\ affects crusades }}

Answered by dreamrob
0

Program :

for i in range (12 , 17+1):

   print("Square of ", i , " = " , i*i);

Output :

Square of  12  =  144

Square of  13  =  169

Square of  14  =  196

Square of  15  =  225

Square of  16  =  256

Square of  17  =  289

Extra information :

Write a program to print the factorial of a number

Program :

n = int(input("Enter a number : "))

f = 1

for i in range (1 , n+1):

  f = f * i

print("Factorial of " , n , " is " , f)

Similar questions