1.

Write a program to input the length and breadth of a rectangle and find its diagonal.Diagonal = √Lenght² + Breadth²please give the answer fast it's my humble request..​

Answer»

Answer:

The program are in C language.

Explanation:

#include

#include

void MAIN()

{

clrscr();

INT length, breadth,Diagonal,a;

printf("enter value for length=");

scanf("%d",&length);

printf("enter value for breadth=");

scanf("%d",&breadth);

a=(length*length)+(breadth*breadth);

diagonal=sqrt(a);

printf("the diagonal of NUMBER is=%d",diagonal);

getch();

}



Discussion

No Comment Found