subject

While loops python Directions show the output for each block of code, if there is an error or an infinite loop, describe the error (what caused it)
1. N=5
While n > 0:
Print ( n * 2 )
N = N - 1

2. X = 0
While x 0:
Line = line + STR (x)
X = X - 1
Print ( line )

7. X = 10
While x > 0:
Print ( X )
X = X + 1

8. X = 2
While x 5:
If m == 7 or m == 9:
P = P + M
Else:
P = P + 1
M = M - 1
Print ( P )

10. X = 10
While x < 100:
Print ( X )
If x == 30:
x = 10
X = X + 5

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 22.06.2019 17:20, Korkot7633
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
image
Computers and Technology, 22.06.2019 17:30, glocurlsprinces
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, xojade
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
You know the right answer?
While loops python Directions show the output for each block of code, if there is an error or an in...

Questions in other subjects: