Answers for "printf, scanf, stdin, stdout, C, strings,"

C
0

printf, scanf, stdin, stdout, C, strings,

/**
* USING scanf() AND printf()
* scanf(): used to take formated input from stdin
* printf(): used to display fromated outputt to stdout
*/

#include <stdio.h>
int main( ) {

   char str[100];
   int i;

   printf( "Enter a value :");
   scanf("%s", str);

   printf( "\nYou entered: %s %d ", str);

   return 0;
}
Posted by: Guest on August-09-2021

Code answers related to "C"

Browse Popular Code Answers by Language