Write a program for an iteration


Discuss the below:

Q1. Write a program that ask the user for starting value and an ending value and then writes all the integers (inclusive) between those two values

Sample output:
Enter Start:
5
Enter End:
9

5 6 7 8 9

Q2. Write a program that ask the user to enter a word. The program will then repeat word for as many time as it has characters:

Sample output:

Enter a word:
Hello

Hello
Hello
Hello
Hello
Hello

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a program for an iteration
Reference No:- TGS01934755

Now Priced at $25 (50% Discount)

Recommended (93%)

Rated (4.5/5)