get 28 29 put 28 29 stdin stdout c

Solutions on MaxInterview for get 28 29 put 28 29 stdin stdout c by the best coders in the world

showing results for - "get 28 29 put 28 29 stdin stdout c"
Amelia
22 Jan 2021
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}