Computer Science, asked by thirshathirsha76, 4 months ago

Write an algorithms for find the length of the string?

Answers

Answered by Anonymous
2

Answer:

1.int main() {char a [100]; into length.

printf ("Enter a string to calculate its length\n"); gets (a);

length = strlen(a);

printf ("Length of the string = %d\n",length);

return 0;}

Explanation:

❤plz folow em❤

Answered by No1Brandedkamina
0

Answer:

  • 1.int main() {char a [100]; into length.
  • printf ("Enter a string to calculate its length\n"); gets (a);
  • length = strlen(a);
  • printf ("Length of the string = %d\n",length);
  • return 0

Explanation:

please mark me as a Brainlist

Similar questions