import java.util.*; public class Naloga34{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int a = 1; while (a != 0){ System.out.print("Vnesi število: "); a = sc.nextInt(); if (a % 2 == 0){ int st = a; String ob = ""; while (st > 0){ ob += (st % 10); st = st / 10; } System.out.println(ob); }else{ int st = a; for (; st > 0; st--) System.out.print("*"); System.out.println(""); } } } }