Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please do in loop In this program you need to demonstrate your ability to design a while loop. Ask user to enter two positive integer

image text in transcribed

please do in loop

In this program you need to demonstrate your ability to design a while loop. Ask user to enter two positive integer numbers. The first number, say F, should be entered between 1 and 20. The second number, say S, should be greater than first number and should be less than 200. Having these number and using a while loop, print all multiples of F between 0 and S. For instance, given F = 4, S = 96, your program should print " 4, 8, 12, 16, ... 96," F = 7,5 = 199, your program should print "7, 14, 21, 28, ... 196," F = 1, S = 33, your program should print "1, 2, 3, 4, ... 33." F = 20, S = 23, your program should print "20," Note: we assume that will be entered as requested by the user. You do not need to check if S > F or not. In this program you need to demonstrate your ability to design a while loop. Ask user to enter two positive integer numbers. The first number, say F, should be entered between 1 and 20. The second number, say S, should be greater than first number and should be less than 200. Having these number and using a while loop, print all multiples of F between 0 and S. For instance, given F = 4, S = 96, your program should print " 4, 8, 12, 16, ... 96," F = 7,5 = 199, your program should print "7, 14, 21, 28, ... 196," F = 1, S = 33, your program should print "1, 2, 3, 4, ... 33." F = 20, S = 23, your program should print "20," Note: we assume that will be entered as requested by the user. You do not need to check if S > F or not

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions