ICT CARE
  • Home
  • About
  • Contact

Define Types of Triangel

​#include<stdio.h>
main()
{
    int a, b, c;
printf("Enter the 1st hand:\n");
    scanf("%d",&a);
printf("Enter the 2nd hand:\n");
    scanf("%d",&b);
printf("Enter the 3rd hand:\n");
    scanf("%d",&c);
  if(a==b&&a==c){
    printf("Equilateral");
  }
  else if(a==b||b==c||a==c){
    printf("Isotherm");
  }
  else{
    printf("Scalenes");
  }
}
Powered by Create your own unique website with customizable templates.