Write a program in Java that displays “I want to learn Java programming” 50 times using for loop.
Answers
Answered by
1
Answer:
Here is your program:
package com.company;
class Main
{
public static void main(String[] args) {
for (int i = 1; i < 51 ; i++) {
//System.out.print(i+". ");
System.out.println("I want to learn Java programming");
}
}
}
Similar questions