Answers for "read string from stdin"

C
7

python read from stdin

import sys
data = sys.stdin.readlines()
Posted by: Guest on December-07-2020
2

read from stdin c

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

   char str[100];
   int i;

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

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

   return 0;
}
Posted by: Guest on March-02-2020

Code answers related to "C"

Browse Popular Code Answers by Language