1. Make a program using python that runs like these examples (triangle pattern): Sample Input 0 Sample Input 1 Sample Input 2 7 -1 -100 Sample Output 1 1 Sample Output 0 Enter num: Sample Output 2...


1. Make a program using python that runs like these examples (triangle pattern):<br>Sample Input 0<br>Sample Input 1<br>Sample Input 2<br>7<br>-1<br>-100<br>Sample Output 1<br>1<br>Sample Output 0<br>Enter num:<br>Sample Output 2<br>Enter num:<br>012<br>Enter num: Invalid input<br>Enter num: Invalid input<br>Enter num: Invalid input<br>01234<br>0123456<br>012<br>012345678<br>01234<br>01234567890<br>Enter num:<br>0123456<br>0123456789012<br>The input must be greater than zero. If not, print Invalid Input.<br>Keep asking for an inputuntil the input number is greater than 0.<br>

Extracted text: 1. Make a program using python that runs like these examples (triangle pattern): Sample Input 0 Sample Input 1 Sample Input 2 7 -1 -100 Sample Output 1 1 Sample Output 0 Enter num: Sample Output 2 Enter num: 012 Enter num: Invalid input Enter num: Invalid input Enter num: Invalid input 01234 0123456 012 012345678 01234 01234567890 Enter num: 0123456 0123456789012 The input must be greater than zero. If not, print Invalid Input. Keep asking for an inputuntil the input number is greater than 0.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here