Saturday, 28 April 2012

Print integer

              This c system first information an integer and then printing it. Feedback is done using scanf operate and variety is produced on display using printf.


 #include
 void main()
{
    int a;

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

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

    getch();
}

output:-

No comments:

Post a Comment