Thursday, 18 August 2016

Print integer

#include < stdio.h >

int main()
{
  int a;

  printf("Enter an integer\n");
  scanf("%d", &a);
  //takes an integer from user

  printf("Integer that you have entered is %d\n", a);

  return 0;
}

0 comments:

Post a Comment