## Hello! Today I will be showing you all how to make The Pythagorean Theorem in GKC.

## Materials Needed:

- 4x Buttons
- 3x Property
- 2x Counters
- 1x Lifecycle
- 1x Text
- 1x Trigger

## What is the Pythagorean Theorem? ^{[1]}

It is this equation, that is used to find the hypotenuse of right triangles, and only right triangles^{[2]}

It is written as A^2 + B^2 = C^2 ^{[3]}

## Example Problem

What is the hypotenuse of a triangle when A = 8, and B = 6?

8^2 + 6^2 = C^2

Simplify the exponents.

64 + 36 = 100

Then find the square root of 100.

√100 = 10

So, in short, 8^2 + 6^2 = 10^2 whereas 10 is the hypotenuse.

Now let’s get started!

## Instructions

## Step 1

Lay down 4 buttons, and 2 counters.

Make the counters not visible too.

The interaction messages in the buttons are “Add 1 to A”, “Add 1 to B”, “Subtract 1 from A”, and “Subtract one from B”

Here is a layout of what is preferred. ^{[4]}

The Counters update two properties: A and B.

Wire the buttons to the counter.

If the button’s message has “A” in it, then you are wiring it to the “A” counter, same with “B”

If the button’s message has “subtract”, you decrement, but if it has “add”, then you increment the counter.

This is what you should have so far.

## Step 2

Place a trigger down, it should not be visible on game start. ^{[5]} Wire each button to the trigger (Button Pressed → Trigger)

Open Blocks on the trigger, and put these in:

I would prefer you remove the variables, and put property “A” and “B” instead of the variables, but I’m only doing this so I can show you the whole chunk of blocks in one screenshot.

## Step 3

Place down a text, and make a block that runs when receiving on “text change” then put the following blocks:

Do not tell me to put the “Convert Number to Text” block with the properties, because without it, the calculator is MUCH more accurate, test it out if you don’t believe me.

## Step 4

Put a lifecycle down that runs on game start, and transmits on “text change”

Next place down 3 number properties, one named A, the other B, and the other C.

That was not that hard, was it?

- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10
- 11/10

Cya!

Edit:

**Erm what the ∑**