Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Program to print all the ascii values (http://www.go4expert.com/forums/program-print-ascii-values-t23882/)

dhwani 16Nov2010 15:51

Program to print all the ascii values
 
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.

ihatec 16Nov2010 21:00

Re: Program to print all the ascii values
 
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.


All times are GMT +5.5. The time now is 23:50.