1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Program to print all the ascii values

Discussion in 'C' started by dhwani, Nov 16, 2010.

  1. dhwani

    dhwani New Member

    Joined:
    Nov 16, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i need solution to this program
    "Write a program to print all the ascii values and their equivalent characters using a while loop.the ascii values differ from 0 to 255.
     
  2. ihatec

    ihatec New Member

    Joined:
    Sep 1, 2010
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    0
    first what language?
    make a loop from 0 to 255 cast each iteration to char and you are done.
    Code:
    int i=0;
    while(i<255){
    print(i) as a char;
    i++;
    }
    
    this is just a pseudocode.
     

Share This Page