Computer Science, asked by vicky124334, 8 months ago

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..​

Answers

Answered by tshiva7052
1

Answer:

The program are in C language.

Explanation:

#include<stdio.h>

#include<conio.h>

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();

}

Similar questions