Computers and Technology

Consider the following code segment, which is intended to print the digits of the two-digit int number num in reverse order. For example, if num has the value 75, the code segment should print 57. Assume that num has been properly declared and initialized. / missing code /
System. out. print(onesDigit);
System. out. print(tensDigit);
Which of the following can be used to replace / missing code / so that the code segment works as intended?
A int onesDigit = num % 10;
int tensDigit = num / 10;
B int onesDigit = num / 10;
int tensDigit = num % 10;
C int onesDigit = 10 / num;
int tensDigit = 10 % num;
D int onesDigit = num % 100;
int tensDigit = num / 100;
E int onesDigit = num / 100;
int tensDigit = num % 100;

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, ParallelUniverse
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, abbygriffin2009
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
image
Computers and Technology, 24.06.2019 01:00, bellamyciana
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, ilovewaffles70
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
Do you know the correct answer?
Consider the following code segment, which is intended to print the digits of the two-digit int numb...

Questions in other subjects:

Konu
Mathematics, 09.12.2019 15:31
Konu
English, 09.12.2019 15:31