Skip to content

CSE-SJCET/triangle_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Compute the Area of a Triangle

๐Ÿ“˜ Objective

Write a Python program that:

  • Prompts the user for the base and height of a triangle
  • Computes the area using: 0.5 * base * height
  • Prints the result in the required format.

๐Ÿ“ Example

Enter base: 10
Enter height: 5
Area of the triangle: 25.0

๐Ÿš€ Instructions

  1. Write all prompts and logic inside main.py
  2. Follow the format exactly
  3. Push to GitHub to receive your autograded score

โœ”๏ธ Scoring (Auto-Graded)

  • Test 1: base=10, height=5 โ†’ 5 points
  • Test 2: base=3, height=6 โ†’ 5 points
  • Test 3: base=7.5, height=4 โ†’ 5 points
    Total: 15 points

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages