#include<stdio.h>
#include<conio.h>
main()
{
long a,d,n,Tn;
clrscr();
printf("Enter Starting point (a): ");
scanf("%ld",&a);
printf("\nEnter Difference(d): ");
scanf("%ld",&d);
printf("\nEnter the nnumber of term which you want to view: ");
scanf("%ld",&n);
Tn=a+((n-1)*d);
printf("\nThe term is %ld",Tn);
getch();
}
#include<conio.h>
main()
{
long a,d,n,Tn;
clrscr();
printf("Enter Starting point (a): ");
scanf("%ld",&a);
printf("\nEnter Difference(d): ");
scanf("%ld",&d);
printf("\nEnter the nnumber of term which you want to view: ");
scanf("%ld",&n);
Tn=a+((n-1)*d);
printf("\nThe term is %ld",Tn);
getch();
}