Advertisement
Bagosep

butik_laundry

Nov 28th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char pel[20];
  9.     int jumlah;
  10.  
  11.     cout<<"=================================================================="<<endl;
  12.     cout<<"\t\t\t-- BUTIK LAUNDRY --\t\t\t"<<endl;
  13.     cout<<"=================================================================="<<endl;
  14.  
  15.     cout<<endl;
  16.     cout<<endl;
  17.     cout<<"Masukan Banyaknya pelanggan = ";cin>>jumlah;
  18.     cout<<"=================================================================="<<endl;
  19.     for(int kounter=0;kounter<jumlah;kounter++){
  20.         cout<<"Pelanggan "<<kounter+1<<" Seberat = Kg.";cin>>pel[kounter];
  21.  
  22.     }
  23.     cout<<endl;
  24.     cout<<"=================================================================="<<endl;
  25.     for(int kounter=0;kounter<jumlah;kounter++){
  26.         cout<<"Pelanggan "<<kounter+1<<"\t\t";
  27.  
  28.     }
  29.     cout<<endl;
  30.     cout<<"=================================================================="<<endl;
  31.     cout<<endl;
  32.     for(int kounter=0;kounter<jumlah;kounter++){
  33.         cout<<"Seberat "<<pel[kounter]<<"Kg"<<"\t\t";
  34.  
  35.     }
  36.     cout<<endl;
  37.     cout<<"=================================================================="<<endl;
  38.  
  39.     return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement