using System;
using System.Reflection.Metadata;
namespace startover
{
internal class Program
{
static void Main(string[] args)
{
//window setting
Console.Title = "window name";
Console.ForegroundColor = ConsoleColor.Green;
Console.WindowHeight = 40;
//main part of program
int x;
int y;
int z;
Console.Write("whats x? ");
x = Convert.ToInt32( Console.ReadLine());
Console.Write("whats y? ");
y = Convert.ToInt32( Console.ReadLine());
Console.Write("whats z? ");
z = Convert.ToInt32( Console.ReadLine());
int result = z+y+x/3;
Console.WriteLine(result);
Console.ReadKey();
}
}
}
using System;
using System.Reflection.Metadata;
namespace startover
{
internal class Program
{
static void Main(string[] args)
{
//window setting
Console.Title = "window name";
Console.ForegroundColor = ConsoleColor.Green;
Console.WindowHeight = 40;
//main part of program
int x;
int y;
int z;
Console.Write("whats x? ");
x = Convert.ToInt32( Console.ReadLine());
Console.Write("whats y? ");
y = Convert.ToInt32( Console.ReadLine());
Console.Write("whats z? ");
z = Convert.ToInt32( Console.ReadLine());
int result = z+y+x/3;
Console.WriteLine(result);
Console.ReadKey();
}
}
}