Last updated 5 months ago
This is a pretty easy question. If the length of line 1 is bigger than or equal to the length of line 2, output go. Otherwise, output no.
go
no
#include <stdio.h> #include <string.h> int main() { char input1[1001]; char input2[1001]; scanf("%1000s", input1); scanf("%1000s", input2); if (strlen(input1) >= strlen(input2)) { printf("go\n"); } else { printf("no\n"); } }