Difference between revisions of "Test"

From Progzoo
Jump to: navigation, search
(Bahrain)
Line 1: Line 1:
 
{{Flags Tutorial}}  
 
{{Flags Tutorial}}  
<shell lang="java" className="Flag" import="shells.xml#raster" rows='10'/>
 
We can repeat a statement or block of statements with a <b>for</b> loop. The simplest for loops take the following form:
 
 
The control variable <i>i</i> takes every value 0,1,2..9 in turn. We can use the value of <i>i</i> inside the loop if required.
 
 
 
 
==Qatar==
 
==Qatar==
 
<question height="153" width="300" imgOut="flag.png" className="Raster" title="Qatar" rows='15'>
 
<question height="153" width="300" imgOut="flag.png" className="Raster" title="Qatar" rows='15'>

Revision as of 16:22, 7 October 2008

Qatar

Consider the neighbouring state Qatar.

  • 9 pillars, each pillar is 17 pixels below the previous.
  • The five coordinates of the top pillar are (0,0) (84,0) (125,9) (84,17), (0,17)
  • Use RGB(128,0,0) for the less jaunty red.

Flag of Qatar

The need for a loop becomes even more obvious for this flag.



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