Question: Create a program that 1. prompts and asks user to enter an integer. Let's call it N. 2. Based on the integer N that the

 Create a program that 1. prompts and asks user to enter

Create a program that 1. prompts and asks user to enter an integer. Let's call it N. 2. Based on the integer N that the user entered on Step 1, the program asks users to to enter a city name, for N times. 3. At the end, the program prints "I want to visit xxx. ", where xxx is the city name. For example, "Please enter an integer N". 4 "Tell us what city you would like to visit." Geneva "Tell us what city you would like to visit." Edinburgh "Tell us what city you would like to visit." Lucerne "Tell us what city you would like to visit." Munich Output: I want to visit Geneva. I want to visit Edinburgh. I want to visit Lucerne. I want to visit Munich

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!