Write a BASIC-256 program to accept numbers from 1 to 10 and print the sum of the squares of the number.
Answers
Answered by
0
Answer:
try:
num_square=input("enter number: ")
num_square=int(num_square)
num_square=str(num_square)
except Exception as e:
print("invalid input")
for i in range(1):
if num_square >= 1 or num_square <=10:
sq=(num_square*num_square)
print(sq)
break
elif num_square < 0 or num_square >10:
print("enter a number smaller than 10 and greater than 0")
break
request::::
please mark as brain list
language used:::::::
answer done with python programming language
Similar questions