int n, res;
Console.Write("cuadrados:");
for (n = 1; n <= 10; n++)
{
res = Math.Pow(n, 2);
Console.Write("{0}", res);
}
Console.WriteLine("nnn");
Console.WriteLine("cubos:");
for (n = 1; n <= 10; n++)
{
res = Math.Pow(n, 3);
Console.Write("{0}", res);
}
Console.ReadKey();
}
}
}
BYEEEEEE