import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static boolean isPerfectSquare(int n){
        for(int i = 1 ; i<= n ; i++){
            if(n == i * i){
                return true ; 
            }
            
            
        } return false ; 
    }
    
    public static void main(String[] args) {
        System.out.println(isPerfectSquare(26));
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: