#include<stdio.h>
#include<conio.h>
int main()
{
int n, a, sum=0;
clrscr();
printf(“Enter 4 digits no: \n”);
scanf(“%d”, &n);
a=n/1000;
sum=sum+a;
a=n%10;
sum=sum+a;
printf(“sum of 1st and last digit of %d = %d”, n, sum);
getch();
return 0;
}