Nathan Coulas

CCC '04 J1 - Squares

ccc04j1 JAVA8 04 Nov, 2019 0.785s 3 points

Source Code

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

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = (int)Math.sqrt(in.nextInt());
        System.out.println("The largest square has side length " + a + ".");
    }
}