Home > Back-end >  Pray god give directions
Pray god give directions

Time:11-13

How to use a for loop to print out the capital letters in the ASCII table, (do not use an array, function and pointer to write, haven't learned),

CodePudding user response:

A for loop, with less than what you said that, should be knowledge you've learned
For (char c='A'; C<="Z"; C + +)
Printf (" % d ", c);

CodePudding user response:

 for (char c='A'; C<="Z"; C + +) 
Printf (" % % d \ n "c, c, c);

CodePudding user response:

reference 1st floor qybao response:
a for loop, with less than what you said that, should be knowledge you've learned
For (char c='A'; C<="Z"; C + +)
Printf (" % d ", c);

Well, try

CodePudding user response:

reference 1st floor qybao response:
a for loop, with less than what you said that, should be knowledge you've learned
For (char c='A'; C<="Z"; C + +)
Printf (" % d ", c);

Well, try

CodePudding user response:

See the comments, about this?
#include
Int main ()
{
Char c;
For (c='A'; C<='Z'; C + +)
Printf (" % c: % d, c, c);

return 0;
}
  • Related