Sivan’s is teaching his son Vigneshwaran his daily lessons in their home. Vigneshwaran’s mathematics homework note had a question named Mad angles where he need to check if some angles are given it is valid one to form a triangle.

To make his son understand the problem sivan panned to write a simple programming logic for the same.

Functional Description:

The angles are valid to form a triangle if:

Sum of all three angles are equal to 180 degree as well as angle1, angle2 and angle3 > 0

#include <stdio.h> int main() { int angle1,angle2,angle3,sumofangles; scanf("%d%d%d",&angle1,&angle2,&angle3); sumofangles=angle1+angle2+angle3; if(sumofangles==180){ printf("Angles are valid"); } else{ printf("Angles are not valid"); } return 0; }

**INPUT_1:**

90

55

35

**OUTPUT:**

Angles are valid

**INPUT_2:**

67

49

54

**OUTPUT:**

Angles are not valid

Morae! Q

- Find a triplet such that triplet is minimum of all the triplets.
- Rearrange characters in a string such that no two adjacent are same.
- Return the coordinates of all cells in matrix sorted by their distance.
- Function to verify the ISBN number from the book.
- Find out the absolute difference of values of two array integers.
- Rotate the array in the right direction by K steps.
- Find the sequence of moves that wins the game, collect exactly G coins!.
- Calculate the sum of boundary elements of a matrix.
- Find the total number of ways to reach the tree house.
- Compute profit and loss of a product.
- Find the total expense of purchased items.
- Determine the maximum sequence weight.
- Find the person’s birth year is a leap year or not.
- Find the inner rating with the displayed rating.
- Find if angles are valid to form a triangle.
- Find out the winner of the game from the given statistics.
- Verify the tag to determine if one needs to arrest or allow the vehicle.
- Find the largest hexadecimal number.
- Group up all anagrams together from given words.
- Return all anagrams from the given words.