Hi,
I am trying to print the values in enum. Here is the code:
#include<stdio.h>
int main(int argc , char* argv[])
{
char played[] = "This old man, he played ";
int i=0;
enum days{one,two,three,four,five,six,seven,eight,nine,ten};
enum days d;
for(i=0;i<10;i++)
{
printf("%s %s\n ",played,d);
}
return 0;
}
Can Anyone help how to print the values.
I want to print like:
This old man,he played one
This old man,he played two
This old man,he played three
This old man,he played four
and so on.