How To Convert Integers Into ASCII

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

TheMystery

Retired Staff
Active Member
Dec 6, 2013
649
364
133
Hey Console Crunch Here Is A Mini Tut On How To Convert Integers Into ASCII.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Getting ASCII Values";
Random rand = new Random();
for (int i = 97; i < 123; i++)
{
char a = (char)i;
Console.Write(a);
}
Console.ReadKey();
}
}
}

the values 97-122 are values on the ASCII chart a-z lowercase. You simply convert the integer value by char.

(char)integer

Credits :
Pinchu
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ LoveModz:
    Been a very long time.
  • @ QM|T_JinX:
    sup
  • Chat Bot:
    go88club4comm is our newest member. Welcome!
  • Chat Bot:
    QM|T_JinX has joined the room.
  • @ lurch6661:
    zap zap
  • @ QM|T_JinX:
    zap
  • @ lurch6661:
    hey bro hows it going
  • @ QM|T_JinX:
    im good you
  • @ lurch6661:
    good bro just waking up
  • @ QM|T_JinX:
    haha cool
  • @ lurch6661:
    listening to old school lol
  • @ QM|T_JinX:
    nice
  • @ lurch6661:
    old school is best
  • @ QM|T_JinX:
    it is
  • Chat Bot:
    Christo has joined the room.
  • Chat Bot:
    heaven99 is our newest member. Welcome!
  • Chat Bot:
    Glenda is our newest member. Welcome!
  • Chat Bot:
    zandergum015 is our newest member. Welcome!
  • Chat Bot:
    RobertoNoc95 is our newest member. Welcome!
  • @ ⇜HUDSON⇝:
    not been on in years, sad seeing it like this man, was the place to be back in the day, fun times. :weed:hope all old members if they see this are good:peace: now who’s got a console
    +1
  • @ ⇜HUDSON⇝:
    Now who’s got a console ID for me :problemo:
    +1
  • Chat Bot:
    QM|T_JinX has joined the room.
  • @ QM|T_JinX:
    ⇜HUDSON⇝ said:
    Now who’s got a console ID for me :problemo:
    haha
      @ QM|T_JinX: Now who’s got a console ID for me :problemo:haha