Basically I am trying to get my calculator to show Pythagorean and it gives the answer but the work is messed up so lets say a=5 b=? c=7 so I used the pause command every time the variables A, B, C are modified and it shows the right work and numbers are correct but just before the output commands run it's perfectly correct the numbers and then the output command shows a=6 b=11 c=10084638. Right out of the blue and the C variable isn't modified or anything during this I just used the output command to display C. even after the ouput command runs and I check with display and pause the numbers are fine its just output isn't showing the proper data of the variable. Anyone know how to fix this is the code.

**Code:**```
ClrHome
```

0→A

0→B

0→C

Lbl 1

Menu("Math","Pythagorean",2,"Quit",3)

Lbl 2

Menu("Pythagorean","Solve",4,"Help",5,"Back",6)

Lbl 4

Disp "a² + b² = c²

Prompt A

Prompt B

Prompt C

If B=0

Then

A*A→A

C*C→C

ClrHome

Disp A

Disp C

Pause ""

C-A→B

ClrHome

Disp A

Disp C

Disp B

Pause ""

√(B→B

√(A→A

√(C→C

ClrHome

Disp A

Disp C

Disp B

Pause ""

ClrHome

Output(5,9,A

Output(5,10," + "

Output(5,13,B

Output(5,14," = "

Output(5,17,C

Output(6,12,"B="

Output(6,14,B

Pause ""

{rest of code}