only 2 input is taking instead of 3 .
see this code https://ide.codingblocks.com/s/123234
Loop not working
hi @2000kartikgaur,
Please provide what are you trying to input .Code is working fine for me . And if you are trying to give space seperated input in s.nextLine() then this would not work as nextLine() takes whole line as input. And please import java.util.* for scanner to work.