Author:
Evaluation:
Published: 29.10.2019.
Language: Latvian
Level: Secondary school
Literature: n/a
References: Not used
  • Samples 'Praktiskais darbs Java programmēšanas valodā "Bankomāts"', 1.
  • Samples 'Praktiskais darbs Java programmēšanas valodā "Bankomāts"', 2.
Extract

String notesy = "";
for (int i = 0; i < 7; i++) {
if (noteCounter[i] != 0) {
for(int xx = 0; xx < noteCounter[i]; xx++) {
notesy+= notes[i] + ", ";
}} }
System.out.println("Summa tiks izmaksāta šādas banknotes: " + notesy);
}else{
System.out.println("Kontā nepietiek līdzekļu!"); }}}

Author's comment
Atlants