VelizarAvramov

17. Print Part Of ASCII Table

Nov 28th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _17._Print_Part_Of_ASCII_Table
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int firstNumber = int.Parse(Console.ReadLine());
  10.             int secondNumber = int.Parse(Console.ReadLine());
  11.  
  12.             for (char i = (char)firstNumber; i <= (char)secondNumber; i++)
  13.             {
  14.                 Console.Write($"{i} ");
  15.             }
  16.         }
  17.     }
  18. }
Add Comment
Please, Sign In to add comment