Course Content
For Loop
The syntax of the for loop is: for (initialExpression; condition; updateExpression) { // for loop body }
0/2
Sum of Natural Numbers
About Lesson

Conditional statements are used to perform different actions based on different conditions.

if (condition) {
//  block of code to be executed if the condition is true
}