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, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
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, 21.11.2020 03:30
question
Mathematics, 21.11.2020 03:30
question
English, 21.11.2020 03:30
question
Mathematics, 21.11.2020 03:30
Questions on the website: 13722363