Professional Documents
Culture Documents
Question Asss
Question Asss
1)
#include <stdio.h>
int main()
{
int a,b,c;
printf("enter 3 numbers ");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c){
printf("a is the largest number = %d",a);
}else if(b>a && b>c){
printf("b is the largest number = %d ",b);
}else
printf("c is the largest number = %d ",c);
return 0;
}
Question (2.2)
#include <stdio.h>
int main()
{
int a,b,c;
printf("enter 3 numbers to check if angle is right angle triangle ");
scanf("%d%d%d",&a,&b,&c);
if(a+b+c==90)
printf("triangle is right angle triangle");
else
printf("not right angle triangle");
return 0;
}
Question (1.3)