5. Create a program using while loop that will display the square of numbers from 1 to 20. 6. Create a program using do while loop that will display the odd numbers from 1 to 20. 7. Create a program using for loop that will display whether the numbers from 1 to 20 is divisible by 3 or not.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 4MQ4
icon
Related questions
Question
100%

use programming language java

5. Create a program using while loop that will display the square of numbers from 1 to 20.
6. Create a program using do while loop that will display the odd numbers from 1 to 20.
7. Create a program using for loop that will display whether the numbers from 1 to 20 is divisible
by 3 or not.
8. Create a program using foreach loop that will display the list of items in the grade array
{70,75,80,85,90}.
Transcribed Image Text:5. Create a program using while loop that will display the square of numbers from 1 to 20. 6. Create a program using do while loop that will display the odd numbers from 1 to 20. 7. Create a program using for loop that will display whether the numbers from 1 to 20 is divisible by 3 or not. 8. Create a program using foreach loop that will display the list of items in the grade array {70,75,80,85,90}.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Types of Loop
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage