printf 2c scanf 2c stdin 2c stdout 2c c 2c strings 2c

Solutions on MaxInterview for printf 2c scanf 2c stdin 2c stdout 2c c 2c strings 2c by the best coders in the world

showing results for - "printf 2c scanf 2c stdin 2c stdout 2c c 2c strings 2c"
Lisandro
07 Apr 2019
1/**
2* USING scanf() AND printf()
3* scanf(): used to take formated input from stdin
4* printf(): used to display fromated outputt to stdout
5*/
6
7#include <stdio.h>
8int main( ) {
9
10   char str[100];
11   int i;
12
13   printf( "Enter a value :");
14   scanf("%s", str);
15
16   printf( "\nYou entered: %s %d ", str);
17
18   return 0;
19}
similar questions