write an application that prints the hundreds


Write an application that prints the hundreds digit  in two integers read from the keyboard. For example if the data values are 1456 and 255 respectably, output should include the original number followed by the digit in the hundreds position labeled your output appropriately.

Hint : Use value - returning method that requires the number passed as parameter and  return the hundreds digit.

Hints:

  • Use a value-returning method that requires the number passed in as a parameter, and will return the hundreds digit.
  • Use the operators % and /. For example, 1456 % 1000 is 456, and 456 / 100 is 4.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: write an application that prints the hundreds
Reference No:- TGS0210770

Expected delivery within 24 Hours