subject

(I NEED ANSWERS RN!!)
How do I change this to a for loop:

int sum=0, sumSquares=0, firstNum=0, secondNum=0

while(firstNum <= secondNum) {

if(firstNum%2 !=0) {

System. out. println(firstNum)

sumSquares+=(firstNum*firstNum)
}

if(firstNum%2 == 0) {

sum+=firstNum;

}

firstNum++

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
You know the right answer?
(I NEED ANSWERS RN!!)
How do I change this to a for loop:

int sum=0, sumSquares=0,...
Questions
question
Social Studies, 07.05.2020 14:01
Questions on the website: 13722361