#include <stdio.h>

int main() 
{
    int i,count=0;
    for(i=0;i<100;i++)
        if(i%2==0)
    {
        count+=1;
        printf("%d\n",count);
    }   
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: