public class Naloga9{ public static void main(String[] args) { //naloga a: izpiše stotice int a = 674; System.out.println((a / 100) % 10); //naloga b: izpiše T, S, D, E int b = 3814; int enice = b % 10; int desetice = (b / 10) % 10; int stotice = (b / 100) % 10; int tisocice = (b / 1000) % 10; System.out.println(tisocice+"T "+stotice+"S "+desetice+"D "+enice+"E"); } }