write a java program to input and print its sum and average , using do while loop
Answers
Answered by
2
Answer:
Java while Loop. // Program to print line 10 times class Loop { public static void main(String[] args) { int i = 1; while (i <= 10) { System. println("Line " + i); ++i; } } } // Program to find the sum of natural numbers from 1 to 100.
Similar questions