! This code use Do-Until Loop to sum the series: 1+2+3+...+n 1-........ S=0 n= Val(Text1.Text) 2-........ s=s+a a = a +1 3- 4- * 5 points 1-a = 1 2-Do Until a > n 3- Loop 4- Text2.Text = Str(s) 1-a = 1 2-Do Until a > =n 3- Loop 4- Text2.Text = Str(s) 1-a = 1 2-Do Until a < n 3- Loop 4- Text2.Text = Str(s) 1-a = 0 2-Do Until a > n 3- Loop 4- Text2.Text = Str(s) 1-a 1 2-Do Until a = n 3- Loop 4- Text2.Text = Str(s) O ۱۰:۲۲ This code find the summation * 5 points.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
!
This code use Do-Until Loop
to sum the series:
1+2+3+...+n
1-........
S=0
n=
Val(Text1.Text)
2-........
S=s+a
a = a +1
3-
4-
* 5 points
1-a = 1 2-Do Until a > n 3- Loop 4-
Text2.Text = Str(s)
1-a = 1 2-Do Until a > =n 3- Loop 4-
Text2.Text = Str(s)
1-a = 1 2-Do Until a < n 3- Loop 4-
Text2.Text = Str(s)
1-a = 0 2-Do Until a > n 3- Loop 4-
Text2.Text = Str(s)
1-a 1 2-Do Until a = n 3- Loop 4-
Text2.Text = Str(s)
This code find the summation * 5 points
۱۰:۲۲
Transcribed Image Text:! This code use Do-Until Loop to sum the series: 1+2+3+...+n 1-........ S=0 n= Val(Text1.Text) 2-........ S=s+a a = a +1 3- 4- * 5 points 1-a = 1 2-Do Until a > n 3- Loop 4- Text2.Text = Str(s) 1-a = 1 2-Do Until a > =n 3- Loop 4- Text2.Text = Str(s) 1-a = 1 2-Do Until a < n 3- Loop 4- Text2.Text = Str(s) 1-a = 0 2-Do Until a > n 3- Loop 4- Text2.Text = Str(s) 1-a 1 2-Do Until a = n 3- Loop 4- Text2.Text = Str(s) This code find the summation * 5 points ۱۰:۲۲
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,