#include <stdio.h>
int main() {
	char cities[4][10];
	int i;
	for(i=0;i<3;i++) {
		fgets(cities[i],10,stdin);
	}
	printf("%s", cities[2]);
	return 0;
}
This code is working , but it cannot be submitted because:-
"fgets should be used inside the loop" (As per Message) 
while fgets is already inside the loop.