Code://Program requires user to enter a number //program should then print out the name of each digit //I cant seem to get my program to work it keeps spelling out //each digit as "zero" //does anyone see any mistakes? //sorry Im a newbie at this. #include<stdio.h> #include <math.h> int main(void) { long long int n,k,i,d,a; printf("please enter your phone number: "); scanf("%llu",&n); a=n; for ( i=0; n>0; i++) //for loop { n=n/10; } for (k=i; k>=1; k--) { d=n/pow(10,k-1); switch (n) { case 0: printf("zero"); break; case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; case 4: printf("four"); break; case 5: printf("five"); break; case 6: printf("six"); break; case 7: printf("seven"); break; case 8: printf("eight"); break; case 9: printf("nine"); break; } a=a-d*pow(10,k-1); } return(0); }