Computers and Technology

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.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Assign to the variable boolean 'primesecond' the value true if the second leading (just after the mo...

Questions in other subjects:

Konu
Geography, 15.11.2019 15:31