Loading...

Print an Integer

Programme:

#include <stdio.h>
 
int main()
{
  int a;
 
  printf("Enter an integer : ");
  scanf("%d", &a);
 
  printf("Integer that you have entered is : %d\n", a);
 
  return 0;
}

Output:

Enter an integer : 8
Integer that you have entered is : 8