Writing a Program

Type the Kenya code for your program into the Kenya window (under the Kenya tab). All Kenya programs must have a main function where the program starts. For instance:

void main() {

  println( "Hello" );

}

or

void main() {

  println( "What is your name?" );
  String name = readString();
  println( "Hello " + name );
}

Now click the Parse button to check the program is correct.