Saturday, September 15, 2012

CODE #02:SAMPLE PROGRAM TO PRINT INTEGER

| |

#include <stdio.h>

int main()
{
  int a;

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

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

  return 0;
}
Output:
Enter an Integer
45
Integer that you have entered is 45

0 comments:

Post a Comment

Powered by Blogger.