30 lines
415 B
C++
30 lines
415 B
C++
#include <cstdio>
|
|
#include "forLoop.h"
|
|
|
|
/*
|
|
Ouput der Zahlen 10 bis 0 an die Konsole
|
|
Ouput aller Buchstaben des Alphabets
|
|
*/
|
|
|
|
void counter() {
|
|
for (int i = 10; i > 0; i--)
|
|
{
|
|
printf("%d\n", i);
|
|
}
|
|
}
|
|
|
|
void alphabet() {
|
|
char alpha[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
|
|
for (char letter : alpha)
|
|
{
|
|
printf("%c ", letter);
|
|
}
|
|
}
|
|
|
|
void Aufg1Main()
|
|
{
|
|
counter();
|
|
alphabet();
|
|
}
|