double triangle_area(double base, double hight) { double product; product = base*hight; return product / 2; } double a, b; scanf_s("%lf,%lf", &a, &b); printf("%lf", triangle_area(a, b));
#include <stdio.h> int main(void) { double triangle_area(double base, double hight) { double product; product = base*hight; return product / 2; } double a, b; scanf_s("%lf,%lf", &a, &b); printf("%lf", triangle_area(a, b)); system("pause"); return 0; }