jawab
#include<iostream.h>
#include<conio.h> char nama[10][5]; char NIP[10][5]; long gaji[5];
void main()
{
clrscr();
long total_gaji; total_gaji=0; cout<<"================================================"<<endl; cout<<"NO NIP nama gaji"<<endl; cout<<"================================================"<<endl; for(int a=1;a<=5;a++)
{ cout<<a<<endl; gotoxy(5,3+a);cin>>NIP[a]; gotoxy(22,3+a);cin>>nama[a]; gotoxy(38,3+a);cin>>gaji[a];
} cout<<"================================================"<<endl; for(a=1;a<=5;a++){
total_gaji=total_gaji+gaji[a];
}
cout<<" Total gaji : "<<total_gaji;
}