# include <iostream.h>
# include <conio.h>
char nama[51][51];
int a, jum, gol[51], pokok[51], lembur[51], gaji[51];
void main()
{
cout << "Jumlah data = "; cin >> jum;
cout << endl;
for (a=1; a<=jum; a++)
{
cout << "Masukkan data ke-" << a << endl
<< "Nama : ";
cin >> nama[a];
cout << "Golongan : "; cin >> gol[a];
cout << "Lembur : "; cin >> lembur[a];
}
cout << "===========================================================" << endl
<< "| Nama | Golongan | Lembur | Gaji dibayar |" << endl
<< "-----------+--------------+------------+-------------------" << endl;
for (a=1; a<=jum; a++)
{
cout << "| " << nama[a] << " + " << gol[a] << " + "
<< lembur[a] << " + Null |" << endl;
}
cout << "===========================================================";
getch();
}
0 comments:
Post a Comment