first n nos

 #include <stdio.h>


int main() {

    int n;

    printf("till where : ");

    scanf("%d",&n);

    int i;

    for (i=0 ; i<=n ; i++){

        printf("%d\n",i);

    }

    

    

    

    

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings