Question: Question 1: Create a program with a user defined function called checkTriangle, that will determine the type of triangle after being input the 3 different
Question 1:
Create a program with a user defined function called checkTriangle, that will determine the type of triangle after being input the 3 different side lengths (s1, s2, s3). The type of triangles are:
// Equilateral: All sides the same. // Isosceles: Two sides are equal. // Scalene: None of the sides are equal.
Follow the code skeleton for more guidance
// Preprocessor Directives #define _CRT_SECURE_NO_WARNINGS
#include
//Function Prototype void checkTriangle(int x, int y, int z);
int main(void) { int s1, s2, s3; // lengths of the sides of a triangle // Ask user to input the 3 sides of a triangle. // Scan in values. (3 sides) //Function Call return(0); }
// Function Definition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
