write a no. in digits in each line

 #include <stdio.h>


int main() {

    // Write C code here

    int a,b,c,d,e;

    printf("enter the no : ");

    scanf("%d",&a);

    while(a/10!=a){

    printf("%d\n",a%10);

    a=a/10;

    }

    

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings