Experiment 2 Sde
Experiment 2 Sde
: - 1
Name: - Abhishek Saini
Enrolment No.: - A20405221189
Year/Sem/Batch: - 3rd /5th /A2
Aim: - Write a C program for triangle types and write a test case using
euivelance class partition and boundary value analysis.
Objective: - To validate the triangle using equivalence class partition.
Theory: -
C program to check the type of a triangle.
#include<stdio.h>
#include<conio.h>
#include<math.h>
else
{
printf("Triangle is a scaler\n");
}
}
else
{
printf("that is not a valid triangle\n");
}
}
void main()
{
int a,b,c;
Clrscr();
printf("enter the sides of the triangle a,b,c respectively");
scanf("%d%d%d”,&a,&b,&c);
check_triangle(a,b,c);
getch();
}
Test case table for invalid cases for a,b,c<5