using System;
using System.Collections.Generic;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
int i;
//i=100 ;
//while (i < 10)
//{
// Console.WriteLine("Sabir");
// i = i + 1; //i++ ++i
//}
//do
//{
// Console.WriteLine("Sabir");
// i++;
//} while (i < 10);
for(i=0;i<10;i++)
{
Console.WriteLine("Sabir");
}
int[] a=new int[5];
a[0] = 1000;
a[1] = 2000;
a[2] = 3000;
a[3] = 4000;
a[4] = 5000;
//for(i=0;i<5;i++)
//{
// Console.WriteLine(i + "=" + a[i]);
//}
foreach(int item in a)
{
Console.WriteLine( "=" + item);
}
//int[,] b = new int[3,3];
//for (i=0;i<3;i++)
//{
// for (int j = 0; j < 3;j++)
// {
// }
//}
Console.WriteLine("=======Read 10 Number=============");
int[] num = new int[10];
for(int j=0;j<10;j++)
{
num[j]= Convert.ToInt32(Console.ReadLine());
}
Console.WriteLine("=======OutPut=============");
for (int j = 0; j < 10; j++)
{
Console.WriteLine(num[j]);
}
}
}
}
Comments
Post a Comment