Difference between revisions of "Be the Machine - if"

From Progzoo
Jump to: navigation, search
Line 59: Line 59:
 
     <td>Laos</td>
 
     <td>Laos</td>
 
     <td>Asia-Pacific</td>
 
     <td>Asia-Pacific</td>
     <td>236</td>
+
     <td style='text-align:right'>236</td>
     <td>59</td>
+
     <td style='text-align:right'>59</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>Mali</td>
 
     <td>Mali</td>
 
     <td>Africa</td>
 
     <td>Africa</td>
     <td>1250</td>
+
     <td style='text-align:right'>1250</td>
     <td>138</td>
+
     <td style='text-align:right'>138</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>Oman</td>
 
     <td>Oman</td>
 
     <td>Middle East</td>
 
     <td>Middle East</td>
     <td>309</td>
+
     <td style='text-align:right'>309</td>
     <td>30</td>
+
     <td style='text-align:right'>30</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>Peru</td>
 
     <td>Peru</td>
 
     <td>South America</td>
 
     <td>South America</td>
     <td>1280</td>
+
     <td style='text-align:right'>1280</td>
     <td>280</td>
+
     <td style='text-align:right'>280</td>
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
 
     <td>Togo</td>
 
     <td>Togo</td>
 
     <td>Africa</td>
 
     <td>Africa</td>
     <td>56</td>
+
     <td style='text-align:right'>56</td>
     <td>51</td>
+
     <td style='text-align:right'>51</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 19:36, 1 October 2009

Predict the output of each of the following programs.

name region area pop
Chad Africa 1280 91
Cuba Americas 110 113
Fiji Asia-Pacific 18 8
Iran Middle East 1650 707
Iraq Middle East 438 265
Laos Asia-Pacific 236 59
Mali Africa 1250 138
Oman Middle East 309 30
Peru South America 1280 280
Togo Africa 56 51

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]