-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVar.cs
40 lines (38 loc) · 951 Bytes
/
Var.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SkillMineProject7.ConstructorAndMethod
{
class Var
{
/*class Var
{
static void Main(string[] args)
{
var varInt= 100;
var varChar = 'A';
var varString = "abcdefg";
Console.WriteLine($"{0}\n {1}\n{2}",varInt,varChar,varString);
Console.ReadLine();
}
}*/
}
class Params
{
public void Show(params int[] num)
{
for (int a = 0; a < num.Length; a++)
{
Console.WriteLine(num[a]);
}
}
static void Main(string[] args)
{
Params pr = new Params();
pr.Show(20, 30, 60, 40, 50);
Console.ReadLine();
}
}
}