#include <iostream>
using namespace std;
// Nama: Talitha Zakiah
// NIM: 3420230029
// Teknik Informatika Semester 3
void judul() {
puts("---------------------------------------");
}
int main() {
judul();
int A[10], B[10], A2[10], B2[10];
for (int i = 0; i < 10; i++) {
A[i] = (i + 1) * 2;
B[i] = A[i] + i + 2;
A2[i] = A[i] * A[i];
B2[i] = B[i] * B[i];
}
printf("%-5s %-5s %-5s %-10s %-10s\n", "No", "A", "B", "A*A", "B*B");
puts("---------------------------------------");
for (int i = 0; i < 10; i++) {
printf("%-5d %-5d %-5d %-10d %-10d\n", i + 1, A[i], B[i], A2[i], B2[i]);
}
puts("---------------------------------------");
cout << "Nama : Talitha Zakiah" << endl;
cout << "Email : talithazakiahkiah@gmail.com" << endl;
return 0;
}