Difference between revisions of "Be the Machine - if"

From Progzoo
Jump to: navigation, search
(Problem 6)
Line 73: Line 73:
 
static void oneLine(String name, String region,
 
static void oneLine(String name, String region,
 
               int area, long pop, long gdp){
 
               int area, long pop, long gdp){
   if (pop<100 && pop<200)
+
   if (pop>100 && pop<200)
 
     System.out.println(name);
 
     System.out.println(name);
 
}
 
}
 
]]></prog>
 
]]></prog>
 
</question>
 
</question>
 +
 
==Problem 7==
 
==Problem 7==
 
<question className="Cia" title="What's the output?" copyfile="bbc4.txt">
 
<question className="Cia" title="What's the output?" copyfile="bbc4.txt">

Revision as of 12:00, 1 October 2009

Problem 1


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 2


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 3


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 4


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 5


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 6


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 7


[Font] [Default] [Show] [Resize] [History] [Profile]

Problem 8


[Font] [Default] [Show] [Resize] [History] [Profile]