Skip to content

Latest commit

 

History

History

008_Nov16

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

November 16, 2022

ASCII

American Standard Code for Information Interchange

//for loop

for(initialization; condition; increment/decrement) {
    //statement;
}

1. Using increment operator to find even number

#include <stdio.h>

int main()
{
    for (int i = 2; i <= 10; i += 2)
    {
        printf("%d\t", i);
    }

    return 0;
}

Output

> 2 4 6 8 10