https://www.youtube.com/watch?v=PrT9ZBkFJiU&list=PLO56HZSjrPTB4NxAsEP8HRk6YKBDLbp7m&index=10
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
// type name;
char character;
string str;
int num;
float floats;
double doubles;
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
WriteLine(12345); // 정수 리터럴
WriteLine(12.345); // 실수 리터럴
WriteLine('1'); // 문자 리터럴
WriteLine("12345"); // 문자열 리터럴
WriteLine(true); // boolean 리터럴
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
int num;
num = 10;
WriteLine("{0}", num);
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
char character = 'a';
string str = "abc";
int num = 10;
float floats = 1.1f;
double doubles = 1.1;
}
}
}
using static System.Console;
namespace testProject
{
class Program
{
static void Main(string[] args)
{
int num1 = 10, num2 = 5, num3 = 7;
WriteLine(num1);
WriteLine(num2);
WriteLine(num3);
}
}
}