#include <stdio.h> #include <math.h> #include <stdlib.h> int main (void) { int a, b, c; double s, area; printf("Enter the values of the sides of the triangle: "); scanf( "%d %d %d", &a, &b, &c); if ((a+b>c && a+c>b && b+c>a) && (a>0 && b>0 && c>0)) { s=(a+b+c)/2; area=sqrt((s*(s-a)*(s-B)/>*(s-c))); if (a==b && b==c) { printf("Equilateral Triangle. \n"); printf("Area: %d", &area); } else if (a==b || b==c || a==c) { printf("Isosceles Triangle. \n"); printf("Area: %d", &area); } else { printf("Scalene Triangle. \n"); printf("Area: %d", &area); } } else printf("Not a valid triangle"); }

how do I get it to calculate the correct area?