#include<stdio.h>
int main(void)
{
char str[80];
printf(“Enter a string: “);
//scanf(“%s”,str);
//gets(str);
printf((gets(str)));
return 0;
}
input:
hellow world!
output:
hellow world!
#include<stdio.h>
int main(void)
{
char str[80];
printf(“Enter a string: “);
//scanf(“%s”,str);
//gets(str);
printf((gets(str)));
return 0;
}
input:
hellow world!
output:
hellow world!