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
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
English,
2 months ago
Science,
2 months ago
Computer Science,
8 months ago
Chemistry,
8 months ago
Physics,
8 months ago