write an algorithm for find sum of first 10 numbers
Answers
Answered by
0
sum_nums = sum([n for n in range(1, 10 + 1)])
print(f"sum: {sum_nums}")
Answered by
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