πŸ“Š JAVA
Q. What is the output of the below Java code with a FOR loop?
Code:
for(int i=1; i<5; i++)
{
  System.out.print(i +",");
}
  • (A) 1,2,3,4,
  • (B) 1,2,3,4
  • (C) 1,2,3,4,5,
  • (D) 1,2,3,4,5
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1,2,3,4,

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
198
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
88%
Success Rate