write a program that inputs a strig and then print the string, equal to number of times its length
Answers
Answered by
3
Answer:
#include <stdio.h>
#include <string.h>
int main() {
char Str[1000];
int i;
printf("Enter the String: ");
scanf("%s", Str);
for (i = 0; Str[i] != '\0'; ++i);
printf("Length of Str is %d", i);
return 0;
}
Similar questions
English,
3 months ago
Science,
3 months ago
English,
3 months ago
Biology,
11 months ago
Social Sciences,
11 months ago
Environmental Sciences,
11 months ago