Computer Science, asked by itzinnocwntbandariya, 3 months ago

Correct the errors in the guven program
2. class Square
{
public static void main(String args[])
{
CSE-2009
int n=289,r;
r=sqrt(n);
if(n==r)
System.out.println("Perfect Square");
else
System.out.println(“Not a Perfect Square");
}​

Attachments:

Answers

Answered by yaskhandelwal
3

nt n=289,r;

r=sqrt(n);

if(n==r)

System.out.println("Perfect Square");

else

System.out.println(“Not a Perfect Square");

}​

Similar questions