#include <stdio.h>

int odd();
int even();
int n=1;

int odd(){
    if(n<=10){
        printf("\t%d",n+1);
        n++;
        even();
    }
    return 1;
}

int even(){
    if (n<=10){
        printf("\t%d",n-1);
        n++;
        odd();
    }
    return 1;
}
int main() {
    odd();
}

Embed on website

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