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
4
Give a space between String[] and args.
Answered by
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
Social Sciences,
4 months ago
Computer Science,
4 months ago
Math,
4 months ago
Math,
8 months ago
Hindi,
8 months ago
Math,
11 months ago
History,
11 months ago
Biology,
11 months ago