subject

/* * lesson 7 coding activity question 1 * * input a positive three digit integer. print out the digits one per line. * * sample run: enter a three digit number: 678 here are the digits: 6 7 8 */ import java. util. scanner; import java. lang. math; class lesson_7_activity_one { public static void main(string[] args) { /* write your code here * copy and paste your entire code to code runner to complete the activity, * from the first import statement to the last bracket. */ scanner scan = new scanner (system. in); system. out. println(" enter a three digit number: "); int num= scan. nextint(); int first = num % 10; int second = ( num - first ) % 100 / 10; int third = ( num - first - second ) % 1000 / 100; system. out. println("here are the digits: "); system. out. println(first); system. out. println(second); system. out. println(third); } }

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:00, hollodom9654
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, carter1809
Choose the answers that best complete each sentence. on average, are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
image
Computers and Technology, 23.06.2019 22:00, rocksquad9125
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
image
Computers and Technology, 24.06.2019 02:10, ttangelique
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
You know the right answer?
/* * lesson 7 coding activity question 1 * * input a positive three digit integer. print out the dig...

Questions in other subjects: