Soooo this program seems logical, and I've been able to make programs with the same idea in c++ and java whenever i run it everything just closes all of a sudden... perhaps i just got something downloaded wrong
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
/*
int[] numbahs= new int[5];
numbahs[0] = 4;
numbahs[1] = 3;
Console.WriteLine(numbahs[1].ToString());
string[] cow = new string[] { "pee", "poop" };
foreach (string pee in cow)
{
Console.WriteLine(pee);
}
*/
int x;
int y;
Console.WriteLine("enter x:");
x = Console.Read();
Console.WriteLine("enter y:");
y = Console.Read();
int z = (x > y)? 8 : 2;
Console.WriteLine("x:{0} y:{1} z:{2}",x ,y, z);
if (z > x)
{
Console.WriteLine("yoyo");
Console.Read();
}
else { Console.WriteLine("hihi"); }
Console.Read();
}
}
}