using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
public static string donder(int a, int taban)
{
string sonuc = "";
int sayi = a;
do
{
int modi = (sayi % taban);
string modu = Convert.ToString(modi);
//if (((sayi % taban)) < 10) sonuc = modu + sonuc;
//else sonuc = (char)(modi + 55)+sonuc;
sonuc = modu + sonuc;
sayi = sayi / taban;
} while (sayi >= 1);
return sonuc;
}
static string s="";
static int b = 0;
static void Main(string[] args)
{
int x = 5;
int y = 3;
Console.Write("x değerini gir:"); x = Convert.ToInt32(Console.ReadLine());
Console.Write("y değerini gir:"); y
= Convert.ToInt32(Console.ReadLine());
for (int j = 0; j < y; j++)
{
s = s + "1";
}
b = Convert.ToInt32(s);
for (int i = 0; i < Math.Pow(x, y); i++)
{
int a=Convert.ToInt32(donder(i, x));
a = a + b;
string aa = a.ToString();
//for (int k=0;k<y;k++)
//{
// aa=aa.Insert(k*2+1, "-");
//}
Console.WriteLine(aa);
}
Console.WriteLine("Kullandığınız için teşekkürler....");
Console.ReadLine();
}
}
}