If the input is not a positive integer, prompt error and require a new input
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

If the input is not a positive integer, prompt error and require a new input

Pass Task 1.2P: nested loop

Task description:

Get an integer from user, draw a square of "*" based on the value of the input. If the input is not a positive integer, prompt error and require a new input.

(Sample output as shown in the following figure is for demonstration purposes only.)


Submission:

Submit the following files to OnTrack:

1. Your program source code (e.g. task1-2.py)

2. A screen shot of your program running

Check the following things before submitting:

1. Add proper comments to your code

Hint
ComputerCoding: Coding is also called as the computer programming. It is how we communicate with computers. Code tells a computer what actions to take, and writing code is like creating a set of instructions. By learning to write code, you can tell computers what to do or how to behave in a much faster way....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.