#include <stdio.h>//URI 1043//Author: Humaun Kabir int main() { float a, b, c; scanf("%f %f %f", &a, &b, &c); if(a+b>c && a+c>b && b+c>a){ printf("Perimetro = %.1f\n", a+b+c); } else{printf("Area = %.1f\n", .5*(a+b)*c);} return 0;}
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)