#include <stdio.h>

int main() {
    int n;
    printf("enter number: ");
    scanf("%d \n", &n);
    int i = 0;
    while(i <= n) {
        printf("%d \n", i);
        i++;
    }
    return 0;
}

Embed on website

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