a

$3 × 3\;\;  MAGIC \;SQUARE$

$Sub:- Mathematics $
$Class: 8th$
$Topic:Plying\; with\;numbers$

$BY:S.A.S.$
$YALAGONDAPALYA$
$BENGALORE$
$kARNATAKA$

$INSERT\; ANY\;NUMBER\; AND \;SEE \;THE\; MAGIC$

$UPTO\;3000\; AND \;USE \;IN\;YOUR$
$\;CLASS\;ROOM$

a = 1 (slider from 1 to 3000, step 1)
text1: "$" + (LaTeX[a]) + "$"
p: a + 1
text2: "$" + (LaTeX[p]) + "$"
InputBox1 = Textfield(a)
text3: "$" + (LaTeX[p]) + "$"
p1: p + 1
text4: "$" + (LaTeX[p1]) + "$"
text5: "$" + (LaTeX[p1]) + "$"
p2: p1 + 1
text6: "$" + (LaTeX[p2]) + "$"
text7: "$" + (LaTeX[p2]) + "$"
p3: p2 + 1
text8: "$" + (LaTeX[p3]) + "$"
text9: "$" + (LaTeX[p3]) + "$"
p4: p3 + 1
text10: "$" + (LaTeX[p4]) + "$"
text11: "$" + (LaTeX[p4]) + "$"
p5: p4 + 1
text12: "$" + (LaTeX[p5]) + "$"
text13: "$" + (LaTeX[p5]) + "$"
p6: p5 + 1
text14: "$" + (LaTeX[p6]) + "$"
text15: "$" + (LaTeX[p6]) + "$"
p7: p6 + 1
text16: "$" + (LaTeX[p7]) + "$"
text17: "$" + (LaTeX[p7]) + "$"
k: p + p5 + p4
text18: "$=" + (LaTeX[k]) + "$"
text19: "$=" + (LaTeX[k]) + "$"
text20: "$=" + (LaTeX[k]) + "$"
text21: "$" + (LaTeX[k]) + "$"
text22: "$" + (LaTeX[k]) + "$"
text23: "$" + (LaTeX[k]) + "$"
A = (-0.7345454545454544, 3.7836363636363646)
B = (-0.7345454545454541, -2.052727272727269)
f = Segment(A, B)
C = (8.465454545454545, 3.710909090909091)
g = Segment(A, C)
D = (8.556363636363637, -2.089090909090906)
h = Segment(C, D)
i = Segment(B, D)
E = Point(g)
F = Point(i)
j = Segment(E, F)
G = Point(g)
H = Point(i)
l = Segment(G, H)
I = Point(f)
J = Point(h)
m = Segment(I, J)
K = Point(f)
L = Point(h)
n = Segment(K, L)
M = Point(g)
N = (6.647272727272727, -2.1618181818181785)
q = Segment(M, N)
O = Point(f)
P = Point(h)
r = Segment(O, P)
text24: "$" + (LaTeX[k]) + "$"
Q = (-2.4618181818181815, 5.129090909090909)
R = (21.2290909090909, 5.074545454545455)
s = Segment(Q, R)
S = (-2.5527272727272723, -4.561818181818177)
t = Segment(Q, S)
T = (21.33818181818181, -4.489090909090905)
b = Segment(S, T)
c = Segment(R, T)
U = (14.229090909090901, 4.165454545454546)
V = (14.247272727272719, 3.42)
u = Vector(U, V)