/*Serial No.38 [swami6.cpp]*/
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("enter the 1st side of traingle=");
scanf("%d",&a);
printf("enter the 2nd side of traingle=");
scanf("%d",&b);
printf("enter the 3rd side of traingle=");
scanf("%d",&c);
if((a<b+c)&&(b<c+a)&&(c<a+b))
printf(" side of traingle are valid");
else
printf(" side of traingle are invalid");
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("enter the 1st side of traingle=");
scanf("%d",&a);
printf("enter the 2nd side of traingle=");
scanf("%d",&b);
printf("enter the 3rd side of traingle=");
scanf("%d",&c);
if((a<b+c)&&(b<c+a)&&(c<a+b))
printf(" side of traingle are valid");
else
printf(" side of traingle are invalid");
getch();
}
No comments:
Post a Comment
If you have any doubt, feel free to ask...