#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
char stupac1, stupac2;
for (static_cast<char>(stupac1)= 'A'; stupac1 <= 'Z'; ++stupac1) {
for (static_cast<char>(stupac2) = 'a'; stupac2 <= 'z'; ++stupac2)
cout << stupac1 << setw(5) <<stupac2 << endl;
}
return 0;
}
So before i make mistakes explaining this, anyone who wants to help should run this first.
The code works more or less and since im a beginner(new to for aswell) and i wrote this without making a single error, i feel proud.
The problem:
The stupac1 from A-Z repeats the same letters too many times and I don't know how to make it work (note this is from a task in a book, and the code itself should not be changed (for must be used)).
Thanks in advance.