Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below I have two programs that I need help writing in javascript. Create a for loop that starts at 0 and increments by 2 until

Below I have two programs that I need help writing in javascript. Create a for loop that starts at 0 and increments by 2 until 10 and prints out every value Create a while loop that starts at 0 and increments by 10 until 100 and prints out every value Create a do-while loop that has a int that starts at 6 and increments by 6 until 36 and prints out every value Create a for loop that decrements by 1 starting at 100 and all the way down to 1 and print out every value Create a for loop that starts at 1 and ends at 100. Printing out every Even number like this- Even: 2 and every Odd number like this- Odd: 3

Create a int array with the numbers 1,3,5,7,9,10. Create a String array with the length 5. Using the array you made in number 1 add all the numbers together to get the sum of the array. Print the array you made in number 1. Make it print in one line and have a { in the front and a } in the end. Also have each number separated by a comma besides the last number. It should look like: {1,2,3,5,7,9,10}

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions