fork download
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. char str1[100],str2[100];
  6. int lens1,lens2;
  7. scanf("%s",str1);
  8. scanf("%s",str2);
  9. lens1=strlen(str1);
  10. lens2=strlen(str2);
  11. printf("length of string 1 is %d",lens1);
  12. printf("length of string 2 is %d",lens2);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5284KB
stdin
jhuma
akter*& *
stdout
length of string 1 is 5length of string 2 is 7