You are viewing a single comment's thread. Return to all comments →
int main() { char* n_endptr; char* n_str = readline(); int n = strtol(n_str, &n_endptr, 10);
if (n_endptr == n_str || *n_endptr != '\0') { exit(EXIT_FAILURE); } static const char *s[]={"one","two","three","four","five","six","seven","eight","nine"}; int x; scanf("%d",&x); if(x>=1 && x<=9) printf("%s",s(x-1)); else printf("greater than 9"); // Write Your Code Here return 0;
}
can anyone help me to find why am getting error ?
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 →
int main() { char* n_endptr; char* n_str = readline(); int n = strtol(n_str, &n_endptr, 10);
}
can anyone help me to find why am getting error ?