/************************************************** * Author: Morrison * Date: 22 Apr 2021 **************************************************/ public class Tos { public static void main(String[] args) { for(int k = 0; k < 10; k++) { System.out.printf("%s\t\t%s\n", k, k*k); } int k = 0; while( k < 10) { System.out.printf("%s\t\t%s\n", k, k*k); k++; } } }