Advertisement
StoimenK

2.5.Print_Part_of_the_ASCII_Table

Jan 26th, 2020
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _2._5.Print_Part_of_the_ASCII_Table
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int startNum = int.Parse(Console.ReadLine());
  14.             int endNum = int.Parse(Console.ReadLine());
  15.  
  16.             string asciiSybol = "";
  17.  
  18.             for (int i = startNum; i <= endNum; i++)
  19.             {
  20.                 asciiSybol += (char)i + " ";
  21.             }
  22.             Console.WriteLine($"{asciiSybol}");
  23.         }
  24.  
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement