Solution for Exercise 9-8
ex0908
#include <stdio.h>
int main()
{
char alphabet;
for(alphabet='A';alphabet<='Z';alphabet=alphabet+1)
{
printf("%c",alphabet);
}
putchar('\n');
return(0);
}
Output
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Notes
* You could replace Line 9 with putchar(alphabet) and the output would be the same.
Copyright © 1997-2025 by QPBC.
All rights reserved
