print 0 1 2 3 4 in c while loop

#include <stdio.h>

int main() {
    int i = 0;

    while (i <= 4) {
        printf("%d ", i);
        i++;
    }

    return 0;
}