subject

Assign to the variable boolean 'primesecond' the value true if the second leading (just after the most significant) decimal digit of the value of an int variable 'n' is 2,3,5 or 7; otherwise assign 'primesecond' the value false . assume 'primesecond' and 'n' are already declared and that 'n' has already been assigned a value . so if n's value is 58047 primesecond will be false because the second leading digit of 58047 is 8 which is not 2 or 3 or 5 or 7.so far i have: while (n > 1) {int n=((n%1)/1000)); if( (n==2)||(n==3) || (n==5)|| (n==7) ){primesecond=true; }else primesecond = false; }system. out. println(primesecond); this keeps giving me an error and saysctest. java: 7: error: '; ' expected int n=((n%1)/1000)); ^1 erroryou almost certainly should be using:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
You know the right answer?
Assign to the variable boolean 'primesecond' the value true if the second leading (just after the mo...
Questions
question
Mathematics, 28.08.2020 21:01
question
English, 28.08.2020 21:01
question
Mathematics, 28.08.2020 21:01
question
Physics, 28.08.2020 21:01
question
Mathematics, 28.08.2020 21:01
question
Mathematics, 28.08.2020 21:01
Questions on the website: 13722367