Warning!!for my project please help me 》》 write a method the determines if a given rectangle of side a and b is in fact a square | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Warning!!for my project please help me 》》 write a method the determines if a given rectangle of side a and b is in fact a square

isRectangle (5,2)=false isRectangle(3,3)=true

24th Dec 2016, 2:23 PM
Kemal Ulusoy
Kemal Ulusoy - avatar
3 Answers
+ 2
Ask directly for someone to code your whole project ^^ Oo I see my mistake: I've interpreted "homework" as "personnal work", not as "school exercices" by the fault of my low level in current english: you're afraid of nothing anyway!
24th Dec 2016, 8:28 PM
visph
visph - avatar
0
public static void isSquare(int a,int b) { if(a==b) System.out.println("true"); else System.out.println("false"); }
24th Dec 2016, 8:37 PM
bayram akdemir
bayram akdemir - avatar
- 2
Türkçe yaz yardım edeyim
24th Dec 2016, 8:13 PM
bayram akdemir
bayram akdemir - avatar