Write a program in JAVAto find area of right angle triangle.
Answers
Answered by
3
Answer:
refer the attachment for the answer
Explanation:
hope it's helpful
❤️sam❤️
Attachments:
Answered by
0
Answer:
{
double a, b, c;
Scanner ob=new Scanner(System.in) ;
System. out. println("Enter the length of base ") ;
b=ob.nextInt() ;=ob.nextInt() ;
System. out. println("Enter the length of height") ;
c=ob.nextInt() ;
a=0.5×b×c;
System. out. println("Area of triangle ="+a) ;
}
I hope this will help you.
Similar questions