Open nhokhacam1 opened 4 years ago
viet chuong trinh in helloworld 10 lan
for (int i = 0; i < 10; i = i + 1 )
{
Console.WriteLine("Hello World!");
}
i = i + 1 giong i++ giong i+=1
for(int i=0;i<10 ;i = i+1 )
{
Console.WriteLine("Hello World!");
}
int: 0,1,2,3,4,5,6,-1,-2,...
int n = 5;
for(int i=0;i<n;i++ )
{
Console.WriteLine("Hello World!");
}
int n = 5;
for (int i = 0; i < n; i++)
{
Console.WriteLine("Hello World!");
}
int n = 5;
n = 6;
for(int i=0;i<n;i++ )
{
Console.WriteLine("Hello World!");
}
const int n = 5;
for (int i = 0; i < n; i++)
{
Console.WriteLine("Hello World!");
}
static void display(int n)
{
for (int i = 0; i < n; i++)
{
Console.WriteLine("Hello World!");
}
}
static void Main(string[] args)
{
int n = 5;
n = 6;
display(n);
}
cho a,b viet chuong trinh in ra tong 2 so
for (statement 1; statement 2; statement 3) { // code block to be executed }