Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ohjelman pätkä, joka tulostaa arvot 0...9 allekain ruudulle käyttäen while-toistorakennetta:

Code Block
int main()
{
   int i=0;
   while (i<10)
   {
      printf("\ni = %d",i);
      i++;
   }
}