Skip to content

Instantly share code, notes, and snippets.

@Shubhra22
Created October 24, 2020 19:17
Show Gist options
  • Save Shubhra22/7f02b9f4f1d3ce70223d7a22a9463f88 to your computer and use it in GitHub Desktop.
Save Shubhra22/7f02b9f4f1d3ce70223d7a22a9463f88 to your computer and use it in GitHub Desktop.
Shuvro
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");
}
}
}
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