Computer Science, asked by harshraj7529, 30 days ago

question in picture
irrelevant answers 10 answers will be reported​

Attachments:

Answers

Answered by atrs7391
2

class prog

{

   public static void main (String[] args)

   {

       int n = 289;

       double r = Math.sqrt(n);

       if (n==r*r) {

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

       }

       else {

           System.out.println("Not a perfect square");

       }

   }

}

Some are there which has got no mistakes but still I modified so that the program runs efficiently.

Hmm...sorry I cannot give my pho.ne numb.er but you can befriend me on disco.rd.

My I.D.: ATRS#2307

For more great answers you can ask these guys in my following or in my friends:

@Oreki

@BrainlyProgrammer

@anindyaadhikari13

Similar questions