#include <stdio.h> #include <string.h> int main() { char arr1[20],arr2[20]; int a = 0; scanf("%s",arr1); scanf("%s",arr2); a=strcmp(arr1,arr2); if(a==0) printf("same\n"); else printf("different\n"); }
#include <stdio.h> #include <string.h> int main() { char arr1[20],arr2[20]; int a = 0; scanf("%s",arr1); scanf("%s",arr2); a=strcmp(arr1,arr2); if(a==0) printf("same\n"); else printf("different\n"); }