recursion

Sangho Suh & Bernadette Cheng

def how_many_in_front (num):
  if num == 0:
    return 0;
  else:
    return 1 + how_many_in_front (num - 1);

how_many_in_front(4);


License

The images and resources in this website are free to use for educational purposes.
1. Right Click Image
2. Click "Save Image As"