Reading and printing a string
#include<stdio.h>
void main(){
char s[100];
printf(“Enter a string “);
scanf(“%s“,s);
printf(“The string is %s”,s);
}
#include<stdio.h>
void main(){
char s[100];
printf(“Enter a string “);
scanf(“%s“,s);
printf(“The string is %s”,s);
}