Difference between revisions of "Be the Machine - if"

From Progzoo
Jump to: navigation, search
(Problem 1)
(Problem 1)
Line 2: Line 2:
 
<shell lang="java" className="Cia" import="shells_bbc.xml#fun" lang='java'/>
 
<shell lang="java" className="Cia" import="shells_bbc.xml#fun" lang='java'/>
 
==Problem 1==
 
==Problem 1==
<question className="Cia" title="What's the output/" copyfile="bbc.txt">
+
<question className="Cia" title="What's the output/" copyfile="bbc4.txt">
 
<prog>
 
<prog>
 
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 (region.equals("Africa"))
 
   if (region.equals("Africa"))
     System.out.println(region);
+
     System.out.println(name);
 
}
 
}
 
</prog>
 
</prog>
 
</question>
 
</question>

Revision as of 11:41, 1 October 2009

Problem 1


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