Wednesday, 21 August 2013

c program print integer


c program 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 of Program:
Enter an integer
10
Integer that you have entered is 10

No comments:

Post a Comment