Contact Learn C
Copy

Program 359: Reverse of Given Number in words separate digits

Program 359: Reverse of Given Number in words separate digits
 
#include<stdio.h>
main()
{
  int n,x;
  char *num[]={"zero","one","two","three","four","five","six","seven","eight","nine"};
  printf("Enter a number\n");
  scanf("%d",&n);
  while(n>0)
  {
    x=n%10;
    printf("%s ",num[x]);
    n=n/10;
  }
  printf("\n");
}
Explanation:

//Coming Soon

Output:
Reverse of Given Number in words separate digits



Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide