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 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
If you have watched pretty little liars(pll)what are the names of the main characters? all of them and the boyfriends and girlfriends too.
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
Mathematics, 23.05.2020 19:00
question
Mathematics, 23.05.2020 19:00