Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 290 Bytes

loops.md

File metadata and controls

26 lines (23 loc) · 290 Bytes

Loops

While Loop

#include <stdio.h>

int main(void)
{
    int i=0;
    while (i<3){
        printf("meow\n");
        i++;
    }
}

For Loop

#include <stdio.h>

int main(void)
{
    for (int i=0;i<3;i++)
    {
        printf("meow\n");
    }
}