Computer Science, asked by 4427, 8 months ago

Good Morning Dear Friends
I am Compiling This Program And It's giving compilation error
Can Anyone tell Me where Is the Mistake
Question-:
Write a program to read three sides of a triangle(base, height, hypotenuse) and determine whether they form a right angled triangle or not.​

Attachments:

Answers

Answered by anindyaadhikari13
4

Give a space between String[] and args.

Answered by Vyomsingh
4

Answer:

SYNTAX ERROR:-

Space between String[] args

LOGICAL ERROR:-

At last,if if statement executed .....CanMake(b,h,hy)==true

then,

(You wrote wrong Message there)

You have to write......

System.out.println("Given 3 sides can make a right angle triangle");

_____________________________

Some Basic points to remember:-

hy*hy==b*b+h*h(may give wrong output)

Right Syntax:-

(hy*hy)==(b*b)+(h*h).....

Similar questions