Hi I have to make a program to generate the table of values from 0 to 9

It must have 6 coloms with headings: Number, Double, Triple, Squared, Cubed and Words. I've done everything but last colomn, don't know how to convert digits into words and where to put that in a code. any advise?

Also to have the right result inside of the functions I had to use (x+1) otherwise result was wrong, and I do not understand why?

I know it must be simple because we had only 5 classes so far, but still can't make it.

thanks in advance

Code:// program to generate the tables of values from 0 to 9 //no input from user #include<stdio.h> int x,a,b,c,d; int result; // functions int twice(int x) //2 times the number { result=(x+1)*2; return (result); } int triple(int x) //3 times the number { result=(x+1)*3; return(result); } int squared(x) //number times itself { result=(x+1)*(x+1); return(result); } int cubed(x) //number times itself 3 times { result=(x+1)*(x+1)*(x+1); return (result); } main() { printf("Number\tDouble\tTriple\tSquared\t Cubed\t Words\n"); for(x=0; x<10; ++x) { printf("%3i%8i%8i%9i%9i\n", x, a, b, c, d); a=twice(x); b=triple(x); c=squared(x); d=cubed(x); } return 0; }