skipter icon

C# Triples of Latin Letters

skipter | PRO | 06/11/17 06:45:30 AM UTC | 0 ⭐ | 293 👁️ | Never ⏰ | []
C# |

790 B

|

None

|

0 👍

/

0 👎

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataTypes___Lab
{
    class Program
    {
        static void Main(string[] args)
        {
 
            int n = int.Parse(Console.ReadLine());
 
            for (int i = 0; i < n; i++)
            {
                for (int k = 0; k < n; k++)
                {
                    for (int l = 0; l < n; l++)
                    {
                        Console.WriteLine("" + 
                                               (char)(i + 'a') + 
                                               (char)(k + 'a') + 
                                               (char)(l + 'a'));
                    }
                }
            }
        }
    }
}

Comments