Write a program that takes a number n, where n is input from the user, and prints the first 10 multiples of n. Example run #1: Using while loop: Enter a value: 15 5 10 20 25 30 35 40 45 50 Using for loop: Enter a value: 5 10 15 20 25 30 35 40 45 50 Write the program once using a while loop and again using a for loop.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question
100%
Please use python idle program and take a screenshot of the executable code
Write a program that takes a number n, where n is input from the user, and prints the
first 10 multiples of n.
Example run #1:
Using while loop:
Enter a value:
5
10
15
20
25
30
35
40
45
50
Using for loop:
Enter a value:
5
10
15
20
25
30
35
40
45
50
Write the program once using a while loop and again using a for loop.
Transcribed Image Text:Write a program that takes a number n, where n is input from the user, and prints the first 10 multiples of n. Example run #1: Using while loop: Enter a value: 5 10 15 20 25 30 35 40 45 50 Using for loop: Enter a value: 5 10 15 20 25 30 35 40 45 50 Write the program once using a while loop and again using a for loop.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Input devices
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT