Computer Science, asked by alamrowda20, 1 month ago

Write an algorithm to find the sum of a square of two numbers x and y. ​

Answers

Answered by Anonymous
0

x, y=int(input("Input an x: ")), int(input("Input an y: "))

x, y=int(input("Input an x: ")), int(input("Input an y: ")) xsq=x*x

x, y=int(input("Input an x: ")), int(input("Input an y: ")) xsq=x*x ysq=y*y

x, y=int(input("Input an x: ")), int(input("Input an y: ")) xsq=x*x ysq=y*y sumOfSq=xsq+ysq

x, y=int(input("Input an x: ")), int(input("Input an y: ")) xsq=x*x ysq=y*y sumOfSq=xsq+ysq sqOfSum=sumOfSq+2*x*y

x, y=int(input("Input an x: ")), int(input("Input an y: ")) xsq=x*x ysq=y*y sumOfSq=xsq+ysq sqOfSum=sumOfSq+2*x*y print(f"Sum of squares {sumOfSq} square of sum {sqOfSum}")

Hope it helps ❤️

Answered by santoshgupta9495
0

Your Answer Is in this attachment.

Attachments:
Similar questions