//printing full string using getsd method
// you will get warning though
#include <stdio.h>
void printString(char arr[]);
int main(){
    char str[100];
    gets(str);
    puts(str);
    
    //----
    fgets(str,100,stdin);
    puts(str);
    
    return 0;
}

void printString(char arr[]){
    for(int i=0; arr[i] !='\0' ;i++){
        printf("%c",arr[i]);
    }
    printf("\n");
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: