How can i print ‘1’ using only ASCII characters?
Hello,
Assuming you’re using C, you can do simply:
#include <stdio.h>
int main()
{
printf("%c",49);
return 0;
}
This is because the ASCII code for the character ‘1’ is 49 in decimal representation
Here is an ASCII Table as a reference.
Hope I could help,
Bruno
Hi If you are using Java language you can use :
public class AsciiTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
for (char i = 48; i < 127; i++) {
System.out.println(i);
}
}
}