Computer Science, asked by afshazaheen12, 3 days ago

Write a Java program display your name five time in separate line​

Answers

Answered by kumarisaroj4967
1

Answer:

Example 1: Display a Text Five Times. // Program to print a text 5 times class Main { public static void main(String[] args) { int n = 5; // for loop for (int i = 1; i <= n; ++i) { System. out. println("Java is fun"); } } }

example 2: display number 1 to 5 ....

example 3: display natural numbers.

Similar questions