Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1.

N Natural numbers sum


1+2+3+N --> Return the sum

2. 1^1 + 2^2 +3^3


a) Print the series(One Fn)
b) Sum of the series(Second Fn)

3.2^5=32

4. 123=1+2+3 (Sum of the digit) (Hint % and / operator)

5. 1234 = Sum of the odd digit and even digit

6. 1234 sum of the even place digit and odd place digit

You might also like