Created
February 16, 2018 17:20
-
-
Save s0h1s2/9721c1ac9b878908b5705cb1e6dda7b6 to your computer and use it in GitHub Desktop.
Example way to create a pig latin program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Enter word in here"); | |
string word = Console.ReadLine(); | |
var word1L = word.Substring(1); | |
var out1 = "ay"; | |
var output = word1L+"-"+word[0] + out1; | |
Console.WriteLine(output); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment