/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include<stdio.h>
#include<math.h>
void check_traingle(int side)
{
int a, b, c;
printf("请输入三角形的三边长:");
scanf("%d,%d,%d", &a, &b, &c);
if (a + b <= c)
printf("不能构成三角形");
else if (a + b > c)//a*a + b*b - c*c=0?
printf("Triangle is valid");
else if (a + c > b)
printf("Triangle is valid");
else if (b + c > a)
printf("Triangle is valid");
printf("\n");
return;
}