Computer Science, asked by tharakahasanjith, 7 hours ago

write a c program for this number patter
  a_{n } = a _{1}(n-1) \times d

Answers

Answered by prasadnijai212
0

Answer:

scanf("%d", &a_1);

scanf("%d", &n);

scanf("%d",&d);

int a_n;

a_n = a_1*(n-1)*d

printf("%d", a_n)

Similar questions