using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
for (int i = 1; i <= 5; i++)
{
Console.WriteLine(i+" Saisawas");
}
Console.WriteLine();
for (int i = 5; i >= 1; i--)
{
Console.WriteLine(i+" Thongsri");
}
Console.WriteLine();
int j = 10;
while (j >=1)
{
Console.WriteLine(j+" Saisawas");
j=j-3;
}
Console.WriteLine();
int k = 1;
while (k <=10)
{
Console.WriteLine(k+" Thongsri");
k=k+3;
}
}
}
}
|