#include <stdio.h>

int main() 
{
    int n,i,sum=0;
    printf("Enter the NUMBER\n");
    scanf("%d", &n);
    for(i=1;i<=n;i+=2)
        {
                sum=sum+i;
            
        }
    printf("%d",sum);
}

Embed on website

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