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 // Create a User-Defined Function to check if // the triangle is equilateral or isosceles or scalene. // Equilateral: All sides the same. // Isosceles: Two sides are equal. // Scalene: None of the sides are equal.

//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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!