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; +}