Computer Science, asked by nishish, 6 months ago

1
#
How to attempt?
Question
#
1
2
3
4
5
Adam's Charity
i
Adam decides to be generous and do some charity. Starting today, from day 1
until day n, he gives il coins to charity on day 'i' (1 <=i<= n).
7
Return the total coins he would give to charity.
Input Specification:
input1: Number of days of charity
Output Specification:
Return the total number of coins till charity days.
Example 1:

Answers

Answered by sakibulmandal
0

Answer:

1

#

How to attempt?

Question

#

1

2

3

4

5

Adam's Charity

i

Adam decides to be generous and do some charity. Starting today, from day 1

until day n, he gives il coins to charity on day 'i' (1 <=i<= n).

7

Return the total coins he would give to charity.

Input Specification:

input1: Number of days of charity

Output Specification:

Return the total number of coins till charity days.

Example 1:

Similar questions