Computer Science, asked by CrashOfCars, 2 months ago

Write a python program to calulate the sum of squares of two numbers

Answers

Answered by asmittbhardwajp9kstg
7

a=int(input("enter the first number: "))

b=int(input("enter the second number: "))

c= a*a + b*b

print("the sum of squares of a and b is",c)

Answered by pranavkhanna2528
2

Answer:

n1=int(input("Enter the First Number"))

n2=int(input("Enter the Second Number"))

print(" Square of first number is:")

s1= n1*n1

print(s1)

print(" Square of Second number is:")

s2= n2*n2

print(s2)

print("Sum of Squares of both numbers is:")

Sum= s1+s2  

print(Sum)

Similar questions