How do I print this in console:
123456
23456
3456
456
56
6
It's a homework from my programming class and I am new to coding. I know I could use:
static void Main(string[] args)
{
Console.WriteLine("123456");
Console.WriteLine("23456");
Console.WriteLine("3456");
Console.WriteLine("456");
Console.WriteLine("56");
Console.WriteLine("6");
}
But I was wondering if there is a cleaner and more efficient way to do it.