Originally Posted by
KCfromNC
Yep. Probably easiest if the for loop runs from 'a' to 'z', inclusive, and either keep a separate counter for the number of letters printed so far or realize that value is the current letter minus 'a' plus 1.
You could also work this the other way - loop from 0 to 25 to get 26 lines of output. Do the math as if the characters 'a' - 'z' were numbered 0 to 25. Adjust to the actual ASCII values in the printf() by adding 'a' to each value you print.
Either way is good. Maybe try both just to be sure you understand what's going on.
It is just a different encoding -> 97 == 0x61 == 01100001 == 0141 == ASCII 'a'. All are equally valid representations of the same numerical value. There is some weirdness in C in char vs. signed char vs. unsigned char and so on, but I doubt that will be an issue for this assignment.