Computer Science, asked by suvra2005, 11 months ago

wtite a program in java to find the diagonal of a rectangle​

Answers

Answered by sakshi20031518
1

Answer:

see the pics

hope it will helps you

Attachments:
Answered by Anonymous
3

........hey dude ........

____here is ur answer ______

Java Code for Diagonal of a Rectangle

  1. Java Code for Diagonal of a Rectangleutil.*;
  2. Java Code for Diagonal of a Rectangleutil.*;lang.*;
  3. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.
  4. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.public static void main(String args[])
  5. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.public static void main(String args[])double d,w=20,h=10;
  6. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.public static void main(String args[])double d,w=20,h=10;d = Math. sqrt(Math. pow(w,2)+Math. pow(h,2));
  7. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.public static void main(String args[])double d,w=20,h=10;d = Math. sqrt(Math. pow(w,2)+Math. pow(h,2));println("Result Value = "+d);
  8. Java Code for Diagonal of a Rectangleutil.*;lang.*;class RectangleDiagonal.public static void main(String args[])double d,w=20,h=10;d = Math. sqrt(Math. pow(w,2)+Math. pow(h,2));println("Result Value = "+d);}.

...........good morning .....

..... ....... follow me.... .........

follow me frnd

Similar questions