C++ for statement Prints the alphabet
#include <iostream> using namespace std; int main()/*from w ww. j av a 2s. c o m*/ { char letter; cout << "Here is the alphabet:\n"; for (letter='A'; letter<='Z'; letter++) // Loops A to Z { cout << " " << letter; } return 0; }