This preview shows page 1. Sign up to view the full content.
Unformatted text preview: the triangle is equilateral; (b) the triangle is isosceles (if it is not equilateral); and (c) the triangle is a right-angled triangle. Your output should appear as below, with the correct answer printed for each question. Can a triangle can be formed with the given lengths? Yes / No Is the triangle equilateral? Yes / No / Not applicable If the triangle is not equilateral, it is isosceles? Yes / No / Not applicable Is the triangle right-angled? Yes / No / Not applicable Call this program triangle.c. 3. Write a program that takes a two-digit integer (-99 to +99) as an input and outputs the number in words. If the input is outside this range, the program should print that it is outside the range. Use switch statement when you want to check equality and if statement if you are checking for range. Call this program number-words.c. Turnin Instructions Turnin the “C” program ±le using the following statement. turnin ece175 assignment3 num-digits.c triangle.c number-words.c...
View Full Document
This note was uploaded on 08/24/2010 for the course ECE 175 taught by Professor Grubbs during the Fall '08 term at Arizona.
- Fall '08
- Computer Programming