Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

tux:forschleife [2011/11/21 14:06]
wikisysop
tux:forschleife [2011/12/08 21:43] (aktuell)
wikisysop
Zeile 1: Zeile 1:
 +[[:tux|{{ :​linux.png?​40|}}]]
 =====Verschachtelte For-Schleifen===== =====Verschachtelte For-Schleifen=====
  
Zeile 5: Zeile 6:
 <code c| 1x1.c ⇒ Das kleine 1x1 in C>#​include <​stdio.h>​ <code c| 1x1.c ⇒ Das kleine 1x1 in C>#​include <​stdio.h>​
  
-int main() +int main() {
-{+
 int i, j; int i, j;
  
-  for (i = 1; i <= 10; i++)+  for(i = 1; i <= 10; i++)
     {  ​     {  ​
-       ​printf ("​\n"​);​ +       ​printf("​\n"​);​ 
-       for (j = 1; j <= 10; j++)+       for(j = 1; j <= 10; j++)
          {          {
-            printf ("​%4d",​ i * j);+            printf("​%4d",​ i * j);
          }          }
     }     }
-  printf ("​\n\n"​);​+  printf("​\n\n"​);​
   return 0;   return 0;
 }</​code>​ }</​code>​
Zeile 35: Zeile 35:
    ​9 ​ 18  27  36  45  54  63  72  81  90    ​9 ​ 18  27  36  45  54  63  72  81  90
   10  20  30  40  50  60  70  80  90 100</​xterm>​   10  20  30  40  50  60  70  80  90 100</​xterm>​
 +  ​
 + --- //pronto 2011/11/21 14:48//
 +~~DISCUSSION:​off~~
tux/forschleife.1321880784.txt.gz (16724 views) · Zuletzt geändert: 2011/11/21 14:06 von wikisysop
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0