//Enter and Display Integer Value
#include <stdio.h>
#include <conio.h>
void main()
{
int a;
clrscr();
printf("\n\tEnter any integer value=");
scanf("%d", &a);//%d is used to enter integer value and & gives the address of variable a
printf("\n\tEntered value is=%d", a);//Here we print the entered value
getch();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.