i - 0 j- 0 k = 0 k - 1 j- 1 k - 0 k = 1 i = 1 j- 0 k - 0 k - 1 j- 1 k - 0 k - 1 done! As before, use variables 'i, 'j', and `k' to match the output. 1 for i in range(2): print("i = " + str(i)) for j in range(2): print(" j - " + str(j)) for k in range (2): print(" k = " + str(k)) 3 4 6 7 print("done!")|

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
Question

whats wrong w my code

i = 0
j- 0
k = 0
k - 1
j = 1
k = 0
k = 1
i = 1
j = 0
k = 0
k = 1
i = 1
k = 0
k = 1
done!
As before, use variables i, j, and k' to match the output.
1 for i in range (2):
print("i = " + str(i))
for j in range(2):
print(" j = " + str(j))
for k in range (2):
print(" k = " + str(k))
3
4
7 print("done!")|
Transcribed Image Text:i = 0 j- 0 k = 0 k - 1 j = 1 k = 0 k = 1 i = 1 j = 0 k = 0 k = 1 i = 1 k = 0 k = 1 done! As before, use variables i, j, and k' to match the output. 1 for i in range (2): print("i = " + str(i)) for j in range(2): print(" j = " + str(j)) for k in range (2): print(" k = " + str(k)) 3 4 7 print("done!")|
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage