#include <stdio.h>

int main() {
	double angle1;
	double angle2;
	double angle3;

	printf("Enter the 3 angles: ");
	scanf("%lf%*c%lf%*c%lf", &angle1, &angle2, &angle3);

	// summation of angles must be equal to 180 degrees
	if (angle1 + angle2 + angle3 == 180.0) printf("A triangle can be formed with these angles.");
	else printf("A triangle can't be formed with these angles!");
}
⇪