Program :
#include <stdio.h>#include <conio.h>
int x=1; /* external variables */
static int count=0;
int main()
{
int z; /* auto variable or local scope */
register int answer; // register variable
++count;
printf("\nEnter the value 1:");
scanf("%d",&x);
printf("\nEnter the value 2:");
scanf("%d",&z);
answer=x+z;
printf("\n%d.Addition : %d",count,answer);
getch();
}
0 comments:
Post a Comment