8. Java


public class OneToTen {

public static void main(String[] args) {

int c = 0;

while(c<10) {