These run from 3 variables: x, y, Ans.
Use Ans to solve for C (2=Ans)
or to solve for C (1=Ans)

*************************************
On the TI-83+/SE and TI-84+/SE

5->x
3->y
1:Asm(prgmPYTH8X

will make X = 25 - 9 = 16
and Y = sqrt(25 - 9) = 4

and then you can have:

4->x
3->y
2:Asm(prgmPYTH8X

will make X = 16 + 9 = 25
and Y = sqrt(16 + 9) = 5
*************************************
*************************************
On the TI-86

5->x
3->y
1:Asm(pyth86

will make x = 25 - 9 = 16
and y = sqrt(25 - 9) = 4

and then you can have:

4->x
3->y
2:Asm(pyth86

will make x = 16 + 9 = 25
and y = sqrt(16 + 9) = 5
*************************************