Syntax:
for( Initialization ; Condition ; Increment or Decrement) { Statements; }
Example:
for(i=1;i<=5;i++) { printf("%d\n",i); }
Output:
1 2 3 4 5
_____________________
BloggingSimplified.in
_____________________
All in one blogging website
Syntax:
for( Initialization ; Condition ; Increment or Decrement) { Statements; }
Example:
for(i=1;i<=5;i++) { printf("%d\n",i); }
Output:
1 2 3 4 5
_____________________
BloggingSimplified.in
_____________________
Syntax:
if(condition) { statement1; statement2; }
For Example:
#include<stdio.h> main() { if(2>1) { printf("Confirmed"); } }
Output:
Confirmed