Quick actions

cmd+k|ctrl+k

Navigation

Languages

Tugas 7.1

Snippet info

Language

Cpp

Visibility

public

Author

dhafinshabir610

Created

2024-11-16T09:01:40.007436Z

Updated

2024-11-16T09:05:52.941464Z

#include <iostream>
using namespace std;

void garis()
{
    cout <<"------------------------------\n";
}

void nama ()
{
    puts ("Nama : Dhafin Shabir Alfatih");
    puts ("Email: [email protected]");
}
int main() {
    int i;
    int a = 2;
    int b = 4;
    garis();
    cout<<" No   A   B   A*A  B*B\n";
    garis();
    for (i=1;i<=10;i++)
    {
        printf("%3d%4d%4d%5d%5d\n",i,a,b,a*a,b*b);
        a=a+2;
        b=b+3;
    }
    garis();
    nama(); 
    return 0;
}
INFO