Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions C Program to Print an Integer
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#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;
}