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
Chemistry,
26 days ago
Social Sciences,
26 days ago
English,
26 days ago
Social Sciences,
1 month ago
Geography,
10 months ago
Business Studies,
10 months ago