code script java
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <iomanip>
using namespace std;
int main ()
{
int
a1=0,b1=0,c1=0,d1=0,e1=0;
int
a[5]={4,7,14,28,52}, b[5]={3,7,14,24,37}, c[5]={4,7,10,13,16},
d[5]={11,21,38,65,105},e[5]={1,2,3,4,5};
cout<<
setw(20)<<"\n Forecast
Penjualan MOBIL AL SHOWROOM 2020"<<endl;
cout<<"======================================================================="<<endl;
cout<<
setw(19) << " : MERCEDEZBENZ i8 :" << setw(3) << " Lamborghini :" << setw(5) <<
" Land Cruiser : " << setw(4) <<
" TOTAL :"<<endl;
cout<<"======================================================================="<<endl;
for
(e1=0 ; e1<=4 ; e1++)
{
printf("
Bulan %d : ",e[e1]);
for(a1=e1;
a1<=e1; a1++)
{
cout<<
setw(6) << a[a1] << "
: ";
for(b1=e1;
b1<=e1; b1++)
{
cout<< setw(7) << b[b1] <<
" : ";
for(c1=e1;
c1<=e1; c1++)
{
cout<<
setw(6) << c[c1] << "
: ";
for(d1=e1;
d1<=e1; d1++)
{
cout<<
setw(6) << d[d1] << "
: ";
}
}
}
}cout<<endl;
}
cout<<"======================================================================="<<endl;
cout<<endl;
cout<<endl;
cout<<"
Nama : alkhasyyatulloh"<<endl;
cout<<"
NIM : 2022191024"<<endl;
cout<<"
Kelas : Teknik
Informatika"<<endl;
}
Tidak ada komentar:
Posting Komentar