From d8e137594226d9671ca662b05fac6fd26b377243 Mon Sep 17 00:00:00 2001 From: snakedlover <44599485+snakedlover@users.noreply.github.com> Date: Tue, 30 Oct 2018 12:19:27 +0530 Subject: [PATCH] Create C Program to Print an Integer --- C Program to Print an Integer | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 C Program to Print an Integer diff --git a/C Program to Print an Integer b/C Program to Print an Integer new file mode 100644 index 000000000..b596f99b9 --- /dev/null +++ b/C Program to Print an Integer @@ -0,0 +1,15 @@ +#include +int main() +{ + int number; + + // printf() dislpays the formatted output + printf("Enter an integer: "); + + // scanf() reads the formatted input and stores them + scanf("%d", &number); + + // printf() displays the formatted output + printf("You entered: %d", number); + return 0; +}