What's new

[C#] Tell Me Your Name! Source Code

  • Thread starter Coin
  • Start date
  • Views 2,460
Status
Not open for further replies.
Stormboy

Stormboy

Newbie
Messages
21
Reaction score
11
Points
45
Sin$
0
Code:
using System;

public class Chill
{
	public static void Main()
	{
		Console.WriteLine("Guys chill and have a soda!");
		Console.ReadKey();
	}
}
 
ActionScript

ActionScript

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
Code:
using System;
 
public class Chill
{
	public static void Main()
	{
		Console.WriteLine("Guys chill and have a soda!");
		Console.ReadKey();
	}
}

I win. /thread

Code:
class ***{static void Main(){System.Console.WriteLine("ur nt cool");System.Console.ReadLine();}}
 
ByrdMan

ByrdMan

Once there was a very ugly barnacle.
Retired
Messages
1,678
Reaction score
1,142
Points
900
Sin$
0
Are you serious why would you release this. I learned this on day one of console:confused:
 
thetechnation

thetechnation

gaming developer
Messages
1,418
Reaction score
144
Points
165
Sin$
0
I recently released a program called Tell Me Your Name! two weeks ago. I told you guys I would release it the next week but I forgot and was totally busy.

So the first 4 lines are:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

The next lines are:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Tell_Me_Your_Name_Coin_S7
{
	class MainClass
	{
		public static void Main (string[] args)
		{
		}
	}
}

Inside of "public Main" put this code:
Code:
Console.Write ("What is your name? ");
String name = Console.ReadLine ();
Console.WriteLine ("Your name is " + name);
 
Console.ReadKey ();

So your final result will look like this:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Tell_Me_Your_Name_Coin_S7
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			Console.Write ("What is your name? ");
			String name = Console.ReadLine ();
			Console.WriteLine ("Your name is " + name);
 
			Console.ReadKey ();
		}
	}
}

no real life use but pretty neat keep learning may i suggest taking a free online course on coding
https://www.udemy.com/ has some pretty good intro level courses i think you would benifet from 
Are you serious why would you release this. I learned this on day one of console:confused:

i did to lol
 
Dark TwizTid

Dark TwizTid

1 + 0 = 10
Seasoned Veteran Grammar Nazi Grizzled Veteran
Messages
2,129
Reaction score
583
Points
315
Sin$
0
Well then you guys would remember that one time you completed the code and the feeling of accomplishment that came from it.
 
L

LawlessBaron

A myth
Retired
Legendary Veteran Programmer Scaling the Mountain
Messages
5,538
Reaction score
1,776
Points
1,195
Sin$
7
Sometimes they make you do this sort of stuff as a first level of grasping programming
 
Status
Not open for further replies.
Top Bottom
Login
Register