daily pastebin goal
68%
SHARE
TWEET

Array 3D

a guest Dec 12th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n;
  6.     int j;
  7.     int k;
  8.     int l;
  9.     int A[i];
  10.     int B[j];
  11.     int C[k];
  12.     int D[l];
  13.     string nm,stb;
  14.     cout<<"Nama = ";cin>>nm;
  15.     cout<<"STB = ";cin>>stb;
  16.     cout<<"Masukkan Banyaknya Array = ";cin>>n;
  17.     for(i=0;i<n;i++)
  18.     {
  19.         cout<<"Masukkan Data Ke - "<<i<<" = ";cin>>A[i];
  20.     }
  21.     cout<<endl;cout<<endl;
  22.     cout<<"Nama = "<<nm;
  23.     cout<<"\nSTB = "<<stb;
  24.     cout<<"\n\n\t----------------------";
  25.     cout<<"\n\t| A[i] | B[j] | C[k] | D[l] |";
  26.     for(i=0;i<n;i++)
  27.     {
  28.     cout<<"\n\t| "<<A[i];
  29.     cout<<endl;
  30.     }
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top