![]() Write a C program to input any character and check whether it is alphabet, digit or special character.Write a C program to input any alphabet and check whether it is vowel or consonant.Write a C program to check whether a character is alphabet or not.Write a C program to check whether a year is leap year or not.Write a C program to check whether a number is even or odd.Write a C program to check whether a number is divisible by 5 and 11 or not.Write a C program to check whether a number is negative, positive or zero.Write a C program to find maximum between three numbers.Write a C program to find maximum between two numbers.Required knowledgeīasic C programming, Relational operators, Logical operators List of if.else programming exercises In this exercise we will focus to control program flow using if.else statements.Īlways feel free to drop your queries and suggestions below in the comments section. Relational and logical operators supports this comparison.Ĭ language supports three variants of if statement.Īs a programmer you must have a good control on program execution flow. It is used to compare things and take some action based on the comparison. If statement works like “If condition is met, then execute the task”. For example – if user inputs valid account number and pin, then allow money withdrawal. It is used to take an action based on some condition. ![]() What is an Acute Scalene Triangle?Īn acute scalene triangle is a triangle in which all the sides are of different lengths and all the 3 angles are acute angles.If.else is a branching statement. The perimeter of a scalene triangle can be calculated using the formula, Perimeter of scalene triangle = sum of all sides, that is, Perimeter = a + b + c, where a, b, c are the 3 sides of the triangle. How to Find the Perimeter of a Scalene Triangle? In an obtuse scalene triangle, one of the interior angles is more than 90° and the other 2 angles are less than 90°. Yes, scalene triangles can be obtuse triangles. ☛Check more formulas related to triangles: When the base and height of the triangle are given, then we apply the following formula: Area of triangle = (1/2) × base × height. Here, a, b and c are the 3 different sides of the scalene triangle, and 's' is the semi perimeter of the triangle. The area of a scalene triangle can be calculated using Heron's formula, Area of triangle = √, when all the three side lengths are given. How to Find the Area of a Scalene Triangle? So, the value of c will be the length of the missing side, that is, c = 8 units. Let us substitute the given values in the formula, Perimeter of triangle = a + b + c. The perimeter of a scalene triangle = a + b + c, where a, b and c are the 3 sides. For example, if the perimeter of a scalene triangle is 24 units, and two of its sides are 10 units and 6 units, the missing side can be calculated as follows. We can use the formula for the perimeter and substitute the given values to know the length of the missing side. We can find the missing side of a scalene triangle if the perimeter and the other 2 sides are given. Scalene triangles are triangles with sides of different lengths. How to Find the Missing Side Length of a Scalene Triangle? In an isosceles triangle, two out of the three sides are of the same length and the angles opposite to equal sides are of equal measure. In a scalene triangle, none of the sides are of the same length and none of the angles are of equal measure. What is the Difference Between an Isosceles Triangle and a Scalene Triangle? Since the sides of the triangle are of unequal lengths, even the 3 angles are of different measures.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |