using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Score
{
static void Main(string args)
{
int a = { 0, 1, 2, 3,4,5,6,7,8,9 };
var q = a.Where(x => x % 2 == 0);//Linqで二2の余剰だけq入れる
foreach (var item in q) Console.Write(item);//qに入ってる要素loop、全出しする感じ
Console.ReadLine();
}
}
}
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Score
{
static void Main(string[] args)
{
int い = 01;
while (い < 10)
{
//い = い + 1;
い++;
Console.WriteLine("{0}", い);
Console.ReadLine();
}
}
}
}
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー