17 lines
441 B
C#
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();
|
|
}
|
|
}
|
|
} |