Hi Everyone,
I'm trying to print out an ascending set of letters. The number depends on an input from the user so if the user said the number of inputs was 5 the program would print out:
A B C D E.
I thought i could do it like this:
Because \101 is ascii for A so i thought i could increment that in a for loop but i can't pass the value of 'x' to be escaped. It goes in ok but it prints out :Code:for (x = 101; x < input_from_user; x++) { printf("\%d", x); }
Is there a way of doing this? Am i going about it the wrong way?Code:101 102 103 104 105
Any help would be appreciated.
Thanks