My issue
explain the statement “%c%c%c\n”…
My code
#include <stdio.h>
int main() {
char s[100]; // Assuming a maximum string length of 100 characters
scanf("%s", s); // Input string
// Check if the string has at least 7 characters
if (strlen(s) >= 7) {
printf("%c%c%c\n", s[1], s[4], s[6]);
} else {
printf("Input string is too short\n");
}
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone