-- Pythagori Therum Caculator / Work Shower
-- Unknown value of A
b1 = 2
c1 = 4
AnsB = b1^2
AnsC = c1^2
AnsBC = AnsC - AnsB
AnsRL = (math.sqrt(AnsBC))
print('The Solution Of Equation #1 Is...')
-- show of work of (A)
print('')
print('a^2', '+', 'b^2', '=', 'c^2')
print('a^2', '+', AnsB, '=', AnsC)
print('', '-', AnsB, '-', AnsB)
print('-------------------------------------')
print(' √ (','a^2', '=',AnsBC,')')
print('', 'a', '=',AnsRL)
-- Unknown value of B
a2 = 3
c2 = 6
AnsB1 = a2^2
AnsC1 = c2^2
AnsBC1 = AnsC1 - AnsB1
AnsRL1 = (math.sqrt(AnsBC1))
print('')
print('The Solution Of Equation #2 Is...')
-- show of work of (B)
print('')
print('','a^2', '+', 'b^2', '=', 'c^2')
print('',AnsB1, '+', 'b^2', '=', AnsC1)
print('-', AnsB, '', '', '-', AnsB1)
print('--------------------------------------------')
print(' √ (','b^2', '=',AnsBC1,')')
print('', 'b', '=',AnsRL1)
-- Unknown value of C
a3 = 7
b3 = 4.5
AnsB2 = a3^2
AnsC2 = b3^2
AnsAd = AnsB2 + AnsC2
AnsRL2 = (math.sqrt(AnsAd))
print('')
print('The Solution Of Equation #3 Is...')
-- show of work of (C)
print('')
print('a^2', '+', 'b^2', '=', 'c^2')
print(AnsB2, '+', AnsC2, '=', 'c^2')
print('-------------------------------------')
print('', AnsAd, '=', 'c^2')
print(' √ (',AnsAd, '=','c^2',')')
print('', 'c', '=', AnsRL2)
-- local t = {'','a^2 + b^2 = c^2','a^2 + 4 = 16',' - 4 - 4','----------------',' √a^2 = √12',' a = 3.464'}
--for i,v in pairs(t) do
--print(v)
--end
To embed this project on your website, copy the following code and paste it into your website's HTML: