working on the triangle logic

This commit is contained in:
jandrews
2025-09-25 09:56:09 -04:00
parent b748cc30ba
commit 3dd5313ba4
3 changed files with 13 additions and 5 deletions

View File

@@ -3,4 +3,6 @@
# By MWC Contributors
print("This program will calculate the area of a circle.")
radius = float(input("What is the circle's radius? "))
radius = float(input("What is the circle's radius?"))
area = 3.14*radius*radius
print(area)

View File

@@ -2,6 +2,6 @@
# ------------
# By MWC contributors
my_name ="Chris"
my_name = input("what is your name? ")
greeting = "Hello, " + my_name
print(greeting)
print(greeting)

View File

@@ -5,7 +5,13 @@
from turtle import *
def triangle(side_length):
pass
right(45)
forward(side_length)
right(45)
forward(side_length)
right(45)
forward(side_length)
right(45)
def rectangle(height, width):
pass