package javaapplication11;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a, x = 0, b;
Scanner scanner;
scanner = new Scanner(System.in);
System.out.println("Zadejte kolik mate penez ");
System.out.print("Pocet:");
a = scanner.nextInt();
x = a;
System.out.print("Vami zadana castka"+ x);
System.out.println();
System.out.print(a +"x1");
System.out.println();
b = a / 2;
System.out.print(b +"x2");
System.out.println();
b = a / 5;
System.out.print(b +"x5");
System.out.println();
b = a / 10;
System.out.print(b +"x10");
System.out.println();
b = a / 20;
System.out.print(b +"x20");
System.out.println();
b = a / 50;
System.out.print(b +"x50");
System.out.println();
b = a / 100;
System.out.print(b +"x100");
System.out.println();
b = a / 200;
System.out.print(b +"x200");
System.out.println();
b = a / 500;
System.out.print(b +"x500");
System.out.println();
b = a / 1000;
System.out.print(b +"x1000");
System.out.println();
b = a / 2000;
System.out.print(b +"x2000");
System.out.println();
b = a / 5000;
System.out.print(b +"x5000");
System.out.println();
}
}
našel by se někdo kdo by dokázel z tohodle udělat algoritmus mě to moc nejde diky