Computer Science, asked by charithavenu, 16 days ago

Write an algorithm and flowchart to store three angles of a triangle check and
display whether the triangle is possible or not.

Answers

Answered by samarthkrv
1

Answer:

#include <stdio.h>

int main() {

   int a , b , c;

   printf("Enter the first angle:");

   scanf("%d" , &a);

   printf("Enter the second angle:");

   scanf("%d" , &b);

   printf("Enter the third angle:");

   scanf("%d" , &c);

       if((a+b+c) == 180){

           printf("The triangle can be formed");

       }

       else{

           printf("The triangle can not be formed");

       }

   return 0;

}

Explanation:

Similar questions