test geshi
#1
PHP
  1. <?php
  2. $i = 0;
  3. while ($i<42) {
  4.   echo 'Hello world';
  5.   $i++;
  6. }



Bash
  1. #!/bin/bash
  2. i=0
  3. while [ $i -lt 42 ]
  4. do
  5.   echo "Hello world"
  6.   i=$[$i+1]
  7. done




TCL
  1. set i 0
  2. while {$i <42} {
  3.  puts "hello world';
  4.  incr i
  5. }


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)