Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace PrintPartOfTheASCIITable
- {
- class Program
- {
- static void Main(string[] args)
- {
- int startingChar = int.Parse(Console.ReadLine());
- int lastChar = int.Parse(Console.ReadLine());
- for (int i = startingChar; i <= lastChar; i++)
- {
- char asciisymbol = (char)i;
- if (i < lastChar)
- {
- Console.Write(asciisymbol + " ");
- }
- else
- {
- Console.Write(asciisymbol);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement