Python_Programs_and_Outcomes
Python_Programs_and_Outcomes
2. WAP to input sides of a triangle and calculate its area using Heron's formula
Expected Outcome:
Input: a = 3, b = 4, c = 5
Output: Area of the triangle = 6.0
4. Write a program to input the principal, rate, and time to calculate simple
interest
Expected Outcome:
Input: Principal = 1000, Rate = 5%, Time = 2 years
Output: Simple Interest = 100.0