Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 9 > lesson 8 in c couse

please help me..
by

1 Answer

sam5epi0l
Hi Aditi, Thanks for your patience.

Here is a solution code for the exercise:


#include <stdio.h>

int main() {

char cities[4][10];
int i;
for(i=0;i<4;i++) {
fgets(cities[i], 10, stdin);
}

printf("%s", cities[2]);

return 0;
}

Login / Signup to Answer the Question.