write a java program to print your name five times
Answers
Answered by
4
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 numbers from 1 to 5. ...
Example 3: Display Sum of n Natural Numbers.
Answered by
4
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 numbers from 1 to 5. ...
Example 3: Display Sum of n Natural Number
Similar questions
Biology,
2 months ago
English,
2 months ago
Environmental Sciences,
2 months ago
English,
5 months ago
Hindi,
5 months ago
Business Studies,
9 months ago
Math,
9 months ago
English,
9 months ago