Skip to content

Instantly share code, notes, and snippets.

@s0h1s2
Created February 16, 2018 17:20
Show Gist options
  • Save s0h1s2/9721c1ac9b878908b5705cb1e6dda7b6 to your computer and use it in GitHub Desktop.
Save s0h1s2/9721c1ac9b878908b5705cb1e6dda7b6 to your computer and use it in GitHub Desktop.
Example way to create a pig latin program
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