VelizarAvramov

17. Print Part Of ASCII Table

Nov 15th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. namespace Demo
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int start = int.Parse(Console.ReadLine());
  11.             int end = int.Parse(Console.ReadLine());
  12.  
  13.             //for (int i = start; i <= end; i++)
  14.             //{
  15.             //    Console.Write($"{(char)i} ");
  16.             //}
  17.             //Console.WriteLine();
  18.             for (char i = (char)start; i <= (char)end; i++)
  19.             {
  20.                 Console.Write($"{i} ");
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment