From 444c60b9fffa1c3f458e8d4f91b8849656936f1d Mon Sep 17 00:00:00 2001 From: Prakhar Singh <52965043+Prakhar123-devil@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:29:50 +0530 Subject: [PATCH] updated make some changes --- length of a string | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/length of a string b/length of a string index 33cd513..9b61e4d 100644 --- a/length of a string +++ b/length of a string @@ -3,8 +3,8 @@ 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);