home *** CD-ROM | disk | FTP | other *** search
- main() /* for.c -- illustrates use of for keyword */
- {
- char s[10];
-
- int i;
-
- puts("tests for statement");
- for (i = 0; i < 10; i++) {
- s[i] = i + 65;
- }
- for (i = 0; i < 10; i++) {
- printf("%c",s[i]);
- }
- /* correct answer is: ABCDEFGHIJ*/
- }