Write a Java program display your name five time in separate line
Answers
Answered by
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
English,
1 day ago
English,
1 day ago
Social Sciences,
3 days ago
Geography,
8 months ago
Business Studies,
8 months ago