void homework()
{
string A, loop;
int a, b, c, d, e;
Console.WriteLine("Welcome to Factorial Program.");
Console.Write("Please input your natural number : ");
A = Console.ReadLine();
a = Convert.ToInt32(A);
b = a;
c = 1;
d = 2;
for (; a >= c; a--)
{
Console.Write("{0} ", a);
for (; a >= d; )
{
a--;
Console.Write("* {0} ", a);
}
}
Console.WriteLine(" ");
Console.Write("Result = "); // ตั้งแต่ตรงนี้อ่ะคร๊า ก็ไม่รู้ว่าต้องใส่ code ยังงัย
int sum = b;
sum = c * d ;
Console.WriteLine("{0}", sum);
Console.WriteLine(" ");