The
program will print the 10 characters per line.
Solution:
using
System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Csharp_exercises
{
class Program
{
static void Main(string[] args)
{
int i =1;
while (i <=122)
{
Console.Write((char)i+"\t");
if (i % 10 == 0)
Console.Write("\n");
i++;
}
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Csharp_exercises
{
class Program
{
static void Main(string[] args)
{
int i =1;
while (i <=122)
{
Console.Write((char)i+"\t");
if (i % 10 == 0)
Console.Write("\n");
i++;
}
Console.ReadLine();
}
}
}
No comments:
Post a Comment