public class PotenssitWhile{ public static void main(String args[]) { int i; i=1; while (i<=10) { System.out.println( i + " potenssiin 2 on " + i*i); i++; } } }