Advertisement
agusryana

array 1 dimensi

Jun 5th, 2015
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<conio.h>
  3.  
  4. int main()
  5. {
  6.    int n[3]={1,22,82};
  7.    for(int i=0;i<3;i++)
  8.    {
  9.       cout<<"Array indeks ke - "<<i<<" = "<<n[i];
  10.       cout<<endl;
  11.    }
  12. getch();
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement