package andmed; import java.io.*; public class Voog5{ public static void main(String[] argumendid) throws IOException{ PrintWriter valja=new PrintWriter(new FileWriter("ruudud.txt")); for(int nr=1; nr<=100; nr++){ valja.println(nr*nr); } valja.close(); } }