From 064954448910d40d6e93a9183bef3850ec4acfb7 Mon Sep 17 00:00:00 2001 From: divyanshubisht <57855321+divyanshubisht@users.noreply.github.com> Date: Thu, 22 Oct 2020 12:33:36 +0530 Subject: [PATCH] updated the program removed the errors --- length of a string | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/length of a string b/length of a string index 33cd513..cf35e15 100644 --- a/length of a string +++ b/length of a string @@ -3,9 +3,9 @@ int main() { char s[1000]; int i; - print("Enter a string: ") - scan("%s", s) + printf("Enter a string: "); + scanf("%s", s); for(i = 0; s[i] != '\0'; ++i) printf("Length of string: %d", i); - + return 0; }