Computer Science, asked by kanupriyaraina, 6 months ago

given an integer n find and print the sum of numbers from 1 to n​

Answers

Answered by chinnu92756
0

Answer:

Input: n = 5

Output: Sum of digits in numbers from 1 to 5 = 15

Input: n = 12

Output: Sum of digits in numbers from 1 to 12 = 51

Input: n = 328

Output: Sum of digits in numbers from 1

Answered by ramsmedicine
0

Answer:

n = 5

Sum of digits in numbers from 1 to 5 = 15

: n = 12

tSum of digits in numbers from 1 to 12 = 51

: n = 328

: Sum of digits in numbers from 1 to 328 = 3241

Explanation:

Similar questions