You are viewing a single comment's thread. Return to all comments →
int main() { int x = 0;
char arr[10][9] = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; scanf("%d", &x); if (x >= 0 && x <= 9) { printf("%s\n", arr[x]); } else { printf("Greater than 9 \n"); } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Conditional Statements in C
You are viewing a single comment's thread. Return to all comments →
include
int main() { int x = 0;
}