#include <stdio.h>
#include <math.h>
int main()
{
int x1,x2,x3,y1,y2,y3,a;
float p;
printf("Enter the co-ordinates of frist vertix=");
printf("\nEnter the co-ordinates of second vertix=");
printf("\nEnter the co-ordinates of third vertix=");
a=x1*(y2-y3)+x2*(y3-y1)+x3*(y1-y2);
printf("\nArea of triangle is=%f",a
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpCnsKCWludCB4MSx4Mix4Myx5MSx5Mix5MyxhOwoJZmxvYXQgcDsKCQoJcHJpbnRmKCJFbnRlciB0aGUgY28tb3JkaW5hdGVzIG9mIGZyaXN0IHZlcnRpeD0iKTsKCXNjYW5mKCIlZCVkIiwmeDEsJnkxKTsKCQoJcHJpbnRmKCJcbkVudGVyIHRoZSBjby1vcmRpbmF0ZXMgb2Ygc2Vjb25kIHZlcnRpeD0iKTsKCXNjYW5mKCIlZCVkIiwmeDIseTIpOwoJCglwcmludGYoIlxuRW50ZXIgdGhlIGNvLW9yZGluYXRlcyBvZiB0aGlyZCB2ZXJ0aXg9Iik7CglzY2FuZigiJWQlZCIsJngzLCZ5Myk7CgkKCWE9eDEqKHkyLXkzKSt4MiooeTMteTEpK3gzKih5MS15Mik7CglwPWFicyhhKS8yOwoJCglwcmludGYoIlxuQXJlYSBvZiB0cmlhbmdsZSBpcz0lZiIsYSk7CgkKCXJldHVybiAwOwp9