Teo_Yanchev

PrintPartOfAsciiTable - C# -Fundamentals

Aug 19th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05.PrintPartOfASCIITable
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int firstAsciiValue = int.Parse(Console.ReadLine());
  10. int secondAsciiValue = int.Parse(Console.ReadLine());
  11.  
  12.  
  13. for (int i = firstAsciiValue; i <= secondAsciiValue; i++)
  14. {
  15. char chr = (char)(i);
  16. Console.Write($"{chr} ");
  17. }
  18. }
  19. }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment