How do I check if both inputs are integers and not doubles?
why inputs from keyboards and not using a GUI or reading data from file (txt, xml, csv) ?
yeah, it would be much easier with a stream but this is a part of a course I'm doing and they explicitly state I need to take user input via keyboard.
Btw I did accomplish this with nested if's but just wanted to try and optimize it via loops
Обсуждают сегодня