Computer Science, asked by himu78061, 6 months ago

Write an algo to calculate the sum of even numbers from 1 to 100

Answers

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

print(f"sum: {sum([n for n in range(1, 101) if n % 2 == 0])}")

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

Similar questions