تفاصيل العمل

Problem 1: Simple Calculator

Description:

Create a simple calculator that performs basic arithmetic operations The

user will input two numbers and choose an operation.

Problem2: Triangle Type Checker

Description:

Write a program that determines the type of triangle based on

three side lengths provided by the user. The program should:

1. Check if the three side lengths can form a triangle (using

the triangle inequality theorem).

2. If they can form a triangle, determine the type of triangle:

o Equilateral (all sides are equal)

o Isosceles (two sides are equal)

o Scalene (all sides are different)

Requirements:

1- Validate if the sides form a triangle using the triangle inequality

theorem.

2- Add comments to explain each condition. (Mandatory)

Triangle Inequality Theorem: To form a triangle, the sum of any

two sides must be greater than the third side:

• a + b > c

• a + c > b

• b + c > a

ملفات مرفقة

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
1
تاريخ الإضافة
تاريخ الإنجاز
المهارات