Advertisement
bacco

Print Part Of ASCII Table

May 23rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace PrintPartOfASCIITable
  4. {
  5.     class MainClass
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             var numberA = int.Parse(Console.ReadLine());
  10.             var numberB= int.Parse(Console.ReadLine());
  11.  
  12.             var charA = Convert.ToChar(numberA);
  13.             var charB= Convert.ToChar(numberB);
  14.  
  15.             for (char i = charA; i <= charB; i++)
  16.             {
  17.                 Console.Write(i +" ");
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement