Ada yang membutuhkan sistem array seperti ini? Untuk tugas kuliah atau buat iseng-iseng. Let's Cekidot guys!
Script Code
#include<iostream.h>
#include<conio.h>
main()
{ clrscr;
int
cashflow [5][3] ;
int
i,j;
//input
cout<<"Masukan
Data: \n";
for
(i=0;i<=4;i++)
{
for
(j=0;j<=2;j++)
{
cout<<"Masukan
Data Bulan " <<i+1<<" Untuk Data Ke
"<<j+1<<" : ";
cin>>cashflow[i][j];
}
cout<<endl;
}
//outpit
clrscr();
cout<<"\n\t\t Data Cash Flow\n" ;
cout<<"\t\t PT. Anugrah Kreasindo\n" ;
cout<<"\t\t Alamat: Jl. Cempaka Mas 3\n\n" ;
cout<<"\t Periode: Triwulan I (Dalam jutaan
Rupiah)\n";
cout<<"\t==============================================\n";
cout<<"\t|
Tanggal | Januari | Februari |
Maret |\n";
cout<<"\t==============================================\n";
for
(i=0;i<=4;i++)
{ cout<<"
"<<(i+1)<<"";
for
(j=0;j<=2;j++)
{
cout<<cashflow[i][j]<<" ";
}
cout<<"\n\t----------------------------------------------";
cout<<endl;
}
getch();
//olehRicciAldo
}
Sign up here with your email
ConversionConversion EmoticonEmoticon