2. Write a C++ program that prompts the user for the base and height of a triangle, and calculates and displays its area. (35 pts.) Hint: Area of a triangle = (base * height) / 2
3. Write a C++ program that prompts the user for a number n and returns the sum of the values from 1 to n. (35 points)
0 comments:
Post a Comment