Program Array C++

Posted: 16 Maret 2013 in Pemrograman C++

#include <iostream.h>
#include <conio.h>

/* Jumlah array tidak ditentukan */

int main ()
{
int n[] = {69, 6, 93, 16, 19};

cout<<“Elemen ke     Nilai”<<endl;

for (int i=0; i<10; i++)
{ cout<<”   “<<i<<”           “<<n[i]<<endl; }

//return 0;
getch();
}

Tampilan :
Array [Tidak Ditentukan]

Komentar
  1. […] Program Array C++ […]

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s