/* take a string input from the user using %c
Give input like=
1) aman
\n
2)Shradha
\n */
#include <stdio.h>
#include<string.h>
int main(){
char str[100];
char ch;
int i=0;
while(ch != '\n'){
scanf("%c",&ch);
str[i]=ch;
i++;
}
str[i]='\0';
puts(str);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: