Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  area of diagonal
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,d1,d2;
clrscr();
printf("the two diagonals are ");
scanf("%f %f", &d1,&d2);
a=0.5*d1*d2;
printf("the area is %f", a);
getch();
}
          
Comments: