Help me in solving LUCKYSEVEN problem

My issue

can you give me a solution

My code

#include <stdio.h>

int main(void) {
	char i,s[10];
	scanf("%s",&i);
	//i=s[i];
	printf("%s",s[7]);
	

}


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

@makkarparth7
here is your c code

#include <stdio.h>
#include<string.h>
int main(void) {
	char str[10];
	scanf("%s",str);
	printf("%c",str[6]);
	return 0;
}