/* 三角形の面積を求めるプログラム */
#include <stdio.h>
#include <math.h>
 
float tri( float a, float b, float c );
 
main()
{
        float a, b, c;
 
        printf("3辺の長さを入力して下さい:");
        scanf("%f %f %f", &a, &b, &c );
        printf("三角形の面積は %f です。\n", tri( a, b, c ) ); }
 
/*
        三角形の面積を3辺の長さから求める関数
*/
float tri( float a, float b, float c )
{
        /* ここを考える */
}
/* end of tri3.c */
|   | 実行イメージ | 
 | 
