CS110 Lab #4 In-lab Exercise:


Lab References

Lab material

Exercise #1

Exercise #2

Write a program to find the area of a triangle given the length of its base and height.

    1. Read the values of the base and height of the triangle.
    2. Determine the area of the triangle using the formula, 
       A = (1/2)*base* height.
    3. Output the area of the triangle.

This page last modified:
Sunday, 23-Oct-2011 22:52:41 CST
Accessed     times.
CS Dept Home Page CS Dept Class Files CS110 Class Files
Copyright: Department of Computer Science, University of Regina.