Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _17.Print_Part_Of_ASCII_Table
- {
- class Program
- {
- static void Main(string[] args)
- {
- int startIndex = int.Parse(Console.ReadLine());
- int endIndex = int.Parse(Console.ReadLine());
- for (char @char = (char)startIndex; @char <= endIndex; @char++) // имаме просто цикъл и се използва casting , който преобразува от int в char
- { // слага се @ пред char за да не се обърка с ключова дума char :)
- Console.Write(@char + " ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment