Quick actions

cmd+k|ctrl+k

Navigation

Languages

71al

Snippet info

Language

Cpp

Visibility

public

Author

zackyahmadsyahputra4

Created

2025-11-22T05:21:23.176546Z

Updated

2025-11-22T05:21:23.176546Z

#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    // Header tabel
    puts("==========================================");
    cout << "No" << "\tA" << "\tB" 
        << "\tA*A" << "\tB*B" << endl;
 puts("==========================================");
    // Data rows
    for (int i = 1; i <= 10; i++) {
        int A=2 * i;
        int B=3 * i + 1;
        int A2=A * A;
        int B2=B * B;
        
        cout << i <<"\t"<< A <<"\t"<< B 
             <<"\t"<< A2 <<"\t"<< B2 << endl;
    }
    
    // Garis pemisah dan identitas
   puts("==========================================");
    puts ("Nama:Zacky Ahmad S");
    puts ("Email:[email protected]");
    puts("==========================================");
    
    return 0;
}
INFO