FIAE – Grundlagen der Programmierung – Arrays

# include <stdio.h>
# include <stdlib.h>

int main(void)
{
        system("cls");

        int quadratZahlen[10];

        printf("\n\n");

        for (int i = 0; i < 10; i++) {
                quadratZahlen[i] = (i + 1) * (i + 1);
                printf("\t\t( %d * %d ) = %d\n",(i + 1), (i + 1), quadratZahlen[i]);
        }

        printf("\n\n");

        return EXIT_SUCCESS;
}
   •