1
0
oop-1-labs/Introduction/Introduction.Loop.Step4/Program.cs

17 lines
441 B
C#

using System;
namespace Introduction.Loop.Step4
{
class Program
{
static void Main(string[] args)
{
int from = 5;
int to = 15;
Console.WriteLine("Skaičiai nuo {0} iki {1} ir jų kvadratai ir kūbai:", from, to);
for (int i = from; i <= to; i++)
Console.WriteLine("{0} {1} {2}", i, i * i, i * i * i);
Console.ReadKey();
}
}
}