Computer Science, asked by ishwarya170803, 2 months ago

write an algorithm for find sum of first 10 numbers​

Answers

Answered by valeriy69
0

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

sum_nums = sum([n for n in range(1, 10 + 1)])

print(f"sum: {sum_nums}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by AllenGPhilip
4

Answer:

Explanation:

Step 1 : Start

Step 2 : Input A , B , C , D , E , F , G , H , I , J

Step 3 : K = (A + B + C + D + E + F + G + H + I + J)

Step 4 : Output K

Step 5 : Stop

Similar questions