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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
You know the right answer?
/* * lesson 7 coding activity question 1 * * input a positive three digit integer. print out the dig...
Questions
question
English, 01.07.2019 11:00
question
Mathematics, 01.07.2019 11:00
question
Mathematics, 01.07.2019 11:00
Questions on the website: 13722359