Question: Write a program to ask the user how many lines they would like displayed. Validate the input and if they have entered an integer then
Write a program to ask the user how many lines they would like displayed.
Validate the input and if they have entered an integer then display that many lines starting from
If they did not enter an integer, inform them as per the example below.
Your code needs to pass all the tests in order to gain the marks.Hints.
Ensure you handle any spaces in the input.
Ideally you should only have one instance of displaying 'Bye. in the code
The solution is about or lines of code.
All the test data used is shown.
Your code needs to pass all the tests in order to be awarded the marks.
For example:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
