Computers and Technology
Computers and Technology, 24.02.2021 21:00, louistwdg

System. out. print(); System. out. print("Enter a number less than
100: ");

num = Expo. enterInt();

for (int i=1; I <= num; I++){

if(num %2!=0)

System. out. println(num + " is odd");
else

System. ouy. println(num +"is even")

}

System. out. println();
}
}

Say I enter 5. The loop makes 5 show up 5 times instead of the numbers 1-5 saying if it's even or odd​

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:30, akluke6059
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
image
Computers and Technology, 23.06.2019 12:50, tommy4260
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, ahmedeldyame
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
image
Computers and Technology, 24.06.2019 17:50, yssbammy
Which of the following best describe how the depth-limited search works. a normal depth-first search is performed but the number of ply/depths is limited. a normal breadth-first search is performed but the number of ply/depths is limited. a normal breadth-first search is performed but values above a specific value will be ignored. a normal depth-first search is performed but values above a specific value will be ignored.
Answers: 1
Do you know the correct answer?
System. out. print(); System. out. print("Enter a number less than
100: ");

num =...

Questions in other subjects:

Konu
Mathematics, 21.04.2020 00:11
Konu
Chemistry, 21.04.2020 00:12
Konu
Mathematics, 21.04.2020 00:12