Skip to content

Instantly share code, notes, and snippets.

@jacks0n9
Created November 20, 2020 17:53
Show Gist options
  • Save jacks0n9/a6a25dfb5b0f5cf105ee179f3dda6d9e to your computer and use it in GitHub Desktop.
Save jacks0n9/a6a25dfb5b0f5cf105ee179f3dda6d9e to your computer and use it in GitHub Desktop.
using System;
namespace bruhapp
{
class Program
{
private static void Main(string[] args)
{
Console.WriteLine("The first argument you passed into the app is {0}",args[0]);
Console.WriteLine("Hey bruh, what's ya name?");
string name = Console.ReadLine();
Console.WriteLine("Hello {0}! How old are you?", name);
int age = Int16.Parse(Console.ReadLine());
int inYears = age + 10;
Console.WriteLine("Ok, I now know that your name is {0} and you are {1} years old. That means in 10 years, you will be {2}!",name,age,inYears);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment