Computer Science, asked by afsheenbasith, 4 months ago

Write a program to display sum of numbers from 50 to 80.

Answers

Answered by sravya5198
0

Answer:

Using Python, what is the sum of numbers 1 to 50?

Let’s start with a couple of nitpicks.

You’re not asking for the sum of those numbers. You’re asking for an example of source code, in Python, which can compute that sum (and, presumably, provide the result as output).

Also the sum of all numbers between 1 and 50 is infinite. The sum of all the integers in that range is a bit more tractable.

Now then … moving on to the question: this is a trivial programming exercise. You should not have to post on a public forum, potentially consuming the time and efforts of millions of forum participants with something that you should be able to figure out with only a modicum of effort. So it’s reasonable for us to beg the question, to question your intentions and even to rebuke you for doing so.

Similar questions