Question 1 Write a python program using while loop to find the sum of the below given series up to n. S=5/10 + 5/15 + 5/20 + 5/n For example, if n == 20, then the sum would be 5/10 + 5/15 + 5/20.
Added by Alexander G.
Step 1
Let's call it "total" and set it to 0. Show more…
Show all steps
Your feedback will help us improve your experience
Florencia Cuzmar and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Using Python to write a program with a loop that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display their sum.
Liam H.
write a program to print sum of two numbers. #python
Chandra J.
Write a program that computes the following summation: $$\frac{1}{1+\sqrt{2}}+\frac{1}{\sqrt{2}+\sqrt{3}}+\frac{1}{\sqrt{3}+\sqrt{4}}+\ldots+\frac{1}{\sqrt{624}+\sqrt{625}}$$
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD