import java.util.*;
class Sw
{
Scanner sc=new Scanner(System.in);
int i,n,x;
void show()
{
System.out.println("\nEnter the number: ");
n=sc.nextInt();
for(i=2;i
if(n%i==0 && i==n/i)
break;
}
if(i==n)
System.out.println(n+ " is not a perfect square number");
else
System.out.println(n+ " is a perfect square number");
}
}
This post first appeared on Tutorial Site On Computer Programming Languages F, please read the originial post: here