Created
October 24, 2020 19:17
-
-
Save Shubhra22/7f02b9f4f1d3ce70223d7a22a9463f88 to your computer and use it in GitHub Desktop.
Shuvro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.apple.eawt.AppEvent; | |
import java.util.Scanner; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
int a; | |
int b; | |
int area; | |
Scanner s = new Scanner(System.in); | |
a = s.nextInt(); | |
b = s.nextInt(); | |
while (a>b) | |
{ | |
a = a-1; | |
} | |
if(a==b) | |
{ | |
System.out.print("Square"); | |
} | |
else | |
{ | |
System.out.print("Not Square"); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.apple.eawt.AppEvent; | |
import java.util.Scanner; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
int a; | |
int b; | |
int area; | |
Scanner s = new Scanner(System.in); | |
a = s.nextInt(); | |
b = s.nextInt(); | |
while (a>b) | |
{ | |
a = a-1; | |
} | |
if(a==b) | |
{ | |
System.out.print("Square"); | |
} | |
else | |
{ | |
System.out.print("Not Square"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment