import java.io.*; public class Andmed5{ //tekstifailid public static void main(String[] argumendid) throws IOException{ PrintWriter faili=new PrintWriter(new FileWriter("arvud1.txt")); int arv=1; while(arv<=1000000){ faili.println(arv); arv=arv*10; } faili.close(); } }