C programming: This program will convert int 123 in to one two three.

#include <stdio.h>
#include <stdlib.h>
int main(){
 
    int num,rev=0, a, b;
 
    printf("Please enter a integer.");
    scanf("%d",&num);
    while(num){
        rev = rev*10+num%10;
        num = num/10;
    }
    b=rev;
    while(b){
        rev = b%10;
        b = b/10;
        if(rev==0){
            printf("zero");
        }
        if(rev==1){
            printf("one ");
        }
        if(rev==2){
            printf("two ");
        }
        if(rev==3){
            printf("three ");
        }
        if(rev==4){
            printf("four ");
        }
        if(rev==5){
            printf("five ");
        }
        if(rev==6){
            printf("six ");
        }
        if(rev==7){
            printf("seven ");
        }
        if(rev==8){
            printf("eight ");
        }
        if(rev==9){
            printf("nine ");
        }
    }
 
    return 0;
}