Originally Posted by Bunny View Post
heres the code in C#
Code:
public void printPowers()
{
double i=1.0;
while (i<6)
{
Console.Write(Math.Pow(i, 1.0)+" ");
Console.Write(Math.Pow(i, 2.0)+" ");
Console.Write(Math.Pow(i, 3.0));
Console.WriteLine();
i++;
}
Thanks bunny. As always you're a great help to me, lov u bro. Keep hustling