How to convert ints to chars in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        for (int i = 97; i <= 122; i++) {
            Console.WriteLine((char)i);
        }
    }
}



/*
run:

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

*/

 



answered Sep 13, 2020 by avibootz
...