Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question) Write a Fortran program to calculate the area of a triangle with 3 sides. To do this, your program should consist of following major
Question) Write a Fortran program to calculate the area of a triangle with 3 sides. To do this, your program should consist of following major steps: 1- ask the user to the sides of a triangle via keyboard entry, 2- calculates the area of the triangle based on this formulation, 3-prints the area of the triangle on the screen. Look at the following sample run: by running your program, the following messages and results should be printed accordingly on the screen (Green is keyboard entry). Extra spaces in your output are fine. Those are due to the use of free formatting for print command. Output formatting will be covered in the future lectures. This program calculates the area of a triangle with 3 sides. Enter the length of the first side in meters. 3 Enter the length of the second side in meters. 7 Enter the length of the third side in meters. 6 The area of the entered triangle is 8.94427204 squared meters
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started