1 def print_num_pattern(num1, num2): 2 3 4 if num1 <=0: print(num1, end="") return print(num1, end="") print_num_pattern (num1 - num2, num2) print(num1, end="") _name__ == "___main___": 5 6 7 8 9 10 11 if 12 num1 13 14 int(input()) num2 =int(input()) print_num_pattern(num1, num2) main.py Load default template...

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

My zyBooks lab is giving me a 7/10 is there any possible way that you could help me? 

1 def print_num_pattern(num1, num2):
2
3
4
if num1 <=0:
print(num1, end="")
return
print(num1, end="")
print_num_pattern (num1 - num2, num2)
print(num1, end="")
_name__ == "___main___":
5
6
7
8
9
10
11 if
12
num1
13
14
int(input())
num2 =int(input())
print_num_pattern(num1, num2)
main.py
Load default template...
Transcribed Image Text:1 def print_num_pattern(num1, num2): 2 3 4 if num1 <=0: print(num1, end="") return print(num1, end="") print_num_pattern (num1 - num2, num2) print(num1, end="") _name__ == "___main___": 5 6 7 8 9 10 11 if 12 num1 13 14 int(input()) num2 =int(input()) print_num_pattern(num1, num2) main.py Load default template...
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT