Author Topic: Programming board?  (Read 5296 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Code: [Select]
H

 

Offline blackhole

  • Still not over the rainbow
  • 29
  • Destiny can suck it
    • Black Sphere Studios
Code: [Select]
#include <iostream>

int main()
{
  char curletter = 65; //start at letter 'A'
  char lettermods[] = { 7,-3,7,0,3,-47,48,2,-3,-8,11, -17,12,0, -4,5,-7,-39,34,13,-14,17,-14 };

  for(int i = 0; i < sizeof(lettermods)/sizeof(char); ++i)
  {
    curletter += lettermods[i];
    std::cout << curletter;
  }

  std::cin >> new char;
}

(outputs: HELLO PROGRAMMING BOARD. Try it.)

 

Offline Ashrak

  • Not Banned
  • 210
    • Imagination Designs
I hate My signature!

 

Offline Flipside

  • əp!sd!l£
  • 212
Surrealistcode ;)

 

Offline Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
It's the "Hello World" program, in HQ9+. :)

 

Offline Ashrak

  • Not Banned
  • 210
    • Imagination Designs
It's the "Hello World" program, in HQ9+. :)

Lol :)
I hate My signature!

 

Offline lx

  • 22
Code: [Select]
"!dlrow olleH" > v
                 ,
               ^ _ @

Befunge!

 

Offline Martinus

  • Aka Maeglamor
  • 210
    • Hard Light Productions
Slight bump there mate. :)

Regardless,
Code: [Select]
import random

still_alive = 2
while still_alive > 1:
    print("Hello Programming Board, the cake may be fictitious.")
    still_alive = random.randint(1,100)