3 <title>~/code/while_oef.cpp.html</title>
4 <meta name="Generator" content="Vim/6.3" />
5 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
6 <meta name="author" content="Frederik Vanrenterghem" />
7 <link rel="stylesheet" href="/styles/header.css" type="text/css" />
8 <link rel="stylesheet" href="/styles/main.css" type="text/css" />
11 <!--#include virtual='/header.shtml' -->
13 <font color="#ff40ff">#include </font><font color="#ff6060"><iostream></font>
14 <font color="#ffff00">using</font> <font color="#00ff00">namespace</font> std;
15 <font color="#00ff00">int</font> main()
17 <font color="#00ff00">int</font> x=<font color="#ff6060">0</font>,y=<font color="#ff6060">1</font>,z,i=<font color="#ff6060">1</font>,n;
18 cout << <font color="#ff6060">"Geef een natuurlijk getal: "</font>;
20 cout << <font color="#ff6060">"De reeks gaat als volgt: "</font>;
21 <font color="#ffff00">while</font> (i++<n)
26 cout << z <<<font color="#ff6060">", "</font>;
28 cout << x+y << <font color="#ff6060">"."</font> << endl;
29 <font color="#ffff00">return</font> <font color="#ff6060">0</font>;
32 <!--#include virtual='/footer.shtml' -->