I was working on my own approach. now I will check yours and learn and hopefully fix bugs and convert characters to numbers as well
thank you!
Type: Posts; User: amadeus111
I was working on my own approach. now I will check yours and learn and hopefully fix bugs and convert characters to numbers as well
thank you!
zero is not neglected anymore
if (n==0) {
printf("zero");
}
Thanks for lightening my mind after reading your comment it made perfect sense. for extra challenge, I put blanks after every 3 digit
#include<stdio.h>
#include<string.h>
#define d 9
#define e 9
#define f 4
int main()
{
char *num[]={"","one","two","three","four","five","six","seven","eight","nine"};
char...
#include<stdio.h>
#include<string.h>
#define a 9
#define b 9
#define c 3
int main()
{
char *num[]={"","one","two","three","four","five","six","seven","eight","nine"};
char...