Help me in solving LUCKYSEVEN problem

My issue

how to solve this problem

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	char s;
	scanf("%s",&s);
	printf("%s",s[6]);

}


Learning course: 500 difficulty rating
Problem Link: Lucky Seven Practice Problem in - CodeChef

#include <stdio.h>

int main(void) {
	// your code goes here
	char s[10];
	scanf("%s",&s);
	printf("%c",s[6]);

}