Computer Science, asked by saketranjan3456, 10 months ago

write a program to input the length and breadth of rectangle and final diagonal
diagonal = √length2 + breadth2​

Answers

Answered by paragkoche0
0

Answer:

/* IN C LANGUAGE*/

#inculde<stdio.h>

#inculde<conio.h>

#inculde<math.h>

void main(){

int l,b,sq_b,sq_l,d;

printf("enter the length of rectangle");

scanf ("%d",&l);

printf("enter the breath of rectangle");

scanf("%d",&b);

sq_l=sqr(l);

sq_b=sqr(b);

d=root(sq_l+sq_b);

printf ("diagonal of rectangle is %d",d);

getch();

}

Similar questions