Saturday, February 14, 2015

[PHP] Jack n' Poy

Problem: Create a Jack n' Poy game.

Input:
scissor-paper
paper-rock
scissor-rock
paper-paper
rock-rock

Output:
player one wins
player one wins
player two wins
draw
draw

[PHP] Triangle Asterisk

Problem: Let the user enter a number then use that number to determine the size of the triangle.

Input:
5

Output:
    *
   ***
  *****
 *******
*********

Monday, March 25, 2013

[C#] Split That Newline

Sample text string:

1=2
3=4
5=6

I got a text box that receives multi-liner string. I want to get the data each line so I need to split it. I got some cases regarding this.
Related Posts Plugin for WordPress, Blogger...