From 61bd63c98128206346242078b3db49a7ef4a574e Mon Sep 17 00:00:00 2001 From: Ashwin Godbole <33014264+ashvin-godbole@users.noreply.github.com> Date: Sat, 28 Oct 2017 19:33:29 +0530 Subject: [PATCH] Create PrintAndInputANumber_C.c Take an integer as input and prints it as output using the standard io. --- PrintAndInputANumber_C.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 PrintAndInputANumber_C.c diff --git a/PrintAndInputANumber_C.c b/PrintAndInputANumber_C.c new file mode 100644 index 0000000..c691d18 --- /dev/null +++ b/PrintAndInputANumber_C.c @@ -0,0 +1,8 @@ +#include +int main( ) { + int i; + printf( "input: "); + scanf("%d", &i); + printf( "\noutput: %d ", i); + return 0; +}