// TODO 1: writing loops
int total = 10;
for (int i = 10; i<=15; i++)
{
total=(total+i);
}
Output ("Result: " + total);
			Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
Console.WriteLine("مرحباً");
.
.
. for (int i=1; i<=100; i++)
{
  Console.WriteLine("مرحباً");
} int i=1; i<=100; i==100; i++; int i=1;  // العبارة الأولى في رأس الحلقة
 
if (i <= 100)  // العبارة الثانية في رأس الحلقة
{
  Console.WriteLine("مرحباً");  // loop body جسم الحلقة
  i++;  // العبارة الثالثة في رأس الحلقة
 
  // التكرار مرة أخرى...
 
  if (i <= 100)
  {
    Console.WriteLine("مرحباً");
    i++;
 
    // التكرار مرة أخرى...
 
    if (i <= 100)
    {
      Console.WriteLine("مرحباً");
      i++;
 
      // التكرار مرة أخرى...
      .
      .
      .
    }
  }
} for (int i=1; i<=100; i++)
{
  Console.WriteLine(i);
} 1
2
3
4
5
6
7
.
.
.
98
99
100 int total = 10;
for (int i = 10; i<=15; i++)
{
  total=(total+i);
}
Output("Result: " + total);10
11
12
13
14
15 total = 10     // في البداية
total = 10 + 10 = 20
total = 20 + 11 = 31
total = 31 + 12 = 43
total = 43 + 13 = 56
total = 56 + 14 = 70
total = 70 + 15 = 85