1/**
2* USING gets() and puts()
3* gets(): used to get a char string from stdin
4* puts(): used to display a char string to stdout
5*/
6
7#include <stdio.h>
8int main( ) {
9
10 char str[100];
11
12 printf( "Enter a value :");
13 gets( str );
14
15 printf( "\nYou entered: ");
16 puts( str );
17
18 return 0;
19}