Report Bug
Qus : What is the correct syntax for a for loop?
Qusफॉर लूप के लिए सही सिंटैक्स क्या है?

A. for (i = 0; i < 5; i++) { // code }
B. for (i <= 5; i++) { // code }
C. for i = 1 to 5 { // code }
D. for (i = 0; i < 5) { // code }


Solution




Explanation
The correct syntax for a for loop includes initialization, condition, and increment/decrement in the parentheses separated by semicolons.



Report Bug