FIND S1,S2,S3
#include <stdio.h>
int main()
{
int a,b,c,d,e,f,g,h,i,r,k,s;
printf("Enter 1");
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
scanf("%d",&f);
scanf("%d",&g);
scanf("%d",&h);
scanf("%d",&i);
r=a+e+i;
k=((e*i)-(h*f))+((a*i)-(c*g))+((a*e)-(b*d));
s=((e*i)-(h*f))*a-((d*i)-(g*f))*b+((d*h)-(e*g))*c;
printf("S1 VALUE IS %d\n",r);
printf("S2 VALUE IS %d\n",k);
printf("S3 VALUE IS %d",s);
return 0;
}
Comments
Post a Comment