subject

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;

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:00, minelly1717
Your business be in google top rank. more the rank more the business leads. for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services, online seo expert services,
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, rscvsdfsrysas3712
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, nathanfletcher
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
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
You know the right 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, 01.08.2019 01:30