Revision: 62559
Updated Code
at March 13, 2013 00:07 by Kollins
Updated Code
import java.util.Scanner; public class InternvalZeZadanych{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; while(true){ int i = sc.nextInt(); if(i!=0){ if(i<=20 && i>=10){ count++; } }else{ System.out.println("Pocet ciÂsel z intervalu: "+count); break; } } } }
Revision: 62558
Updated Code
at March 2, 2013 14:39 by Kollins
Updated Code
import java.util.Scanner; public class InternvalZeZadaných{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; while(true){ int i = sc.nextInt(); if(i!=0){ if(i<=20 && i>=10){ count++; } }else{ System.out.println("Po�et Ä�ÃÂsel z intervalu: "+count); break; } } } }
Revision: 62557
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 1, 2013 00:31 by Kollins
Initial Code
import java.util.Scanner; public class InternvalZeZadaných{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; while(true){ int i = sc.nextInt(); if(i!=0){ if(i<=20 && i>=10){ count++; } }else{ System.out.println("PoÄet ÄÃsel z intervalu: "+count); break; } } } }
Initial URL
Initial Description
NapiÅ¡te program, jehož vstupem bude neomezený poÄet ÄÃsel, program se zastavà když vstoupà 0 (nula). Výstupem programu bude poÄet ÄÃsel (ze zadávaných), které ležà v intervalu <10;20>.
Initial Title
PoÄet ÄÃsel v intervalu
Initial Tags
Initial Language
Java