Skip to content

Instantly share code, notes, and snippets.

@coderrb
Created January 24, 2018 06:53
Show Gist options
  • Save coderrb/db9a3efc5e71ca0f83442f8d3b4454de to your computer and use it in GitHub Desktop.
Save coderrb/db9a3efc5e71ca0f83442f8d3b4454de to your computer and use it in GitHub Desktop.
#include <stdio.h>
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment