What will be the output of program?
Attachments:

Answers
Answered by
0
Answer:
In the given AP: a=7,. d=a2-a1=10-7=3,. an=151
To find: n=?
An=a+(n-1)d
151=7+(n-1)3
151-7=(n-1)3
144/3=(n-1)
48+1=49=n
Step-by-step explanation:
Answered by
1
Step-by-step explanation:
The output of the program will be 6.
The program adds each digit of the number and then returns the sum.
Similar questions