# data[].attributes.body
#include <iostream.h>

char PengiraanGred(float);

int main(){

int Pel[4][3];

int total [4] = 0;

for (int i = 0; i< 4;i++)

for(int j = 0; j < 3; j++){

cin>> Pel[i][j];

total[i] = total[i] + Pel[i][j];

}

float average[i] = total[i]/3;

char gred=PengiraanGred(average(i)

{

char PengiraanGred(float ave)

if(ave>=80)

return 'A';

else if (ave>=60)

return 'B'

else return 'c"

}

# data[].attributes.body
#include <iostream.h>

int main(){

int Pel[i][j];

inht total = 0;

for (int i = 0; i< 4;i++)

for(int j = 0; j < 3; j++)

cin>> Pel[i][j];

total[i] = total[i] + Pel[i][j];

}

float average[i] = total[i]/3;

char gred = PengiraanGred(average[i]);

}

}

char PengiraanGred(float ave){

if (ave > 80 && ave <= 100)

return 'A';

else if (ave > 60 && ave <= 79)

return 'B';

else return 'C'

}

# data[].attributes.body
#include <iostream.h>
int Pel[

# data[].attributes.body
#include <iostream.h>

char PengiraanGred(float);

int main(){

int Pel[i][j];

inht total = 0;

for (int i = 0; i< 4;i++)

for(int j = 0; j < 3; j++)

cin>> Pel[i][j];

total[i] = total[i] + Pel[i][j];

}

float average[i] = total[i]/3;

char gred = PengiraanGred(average[i]);

}

if (average > 80 && average <=100)

}

# data[].attributes.body
total=pel[i][0]+pel[i][1]+pel[0][2]

avg=total/4

# data[].attributes.body
#include <iostream.h>

void papar(int[][]);

char PengiraanGred(float);

int main(){

int Pel[4][3];

int total [4] = 0;

for (int i = 0; i< 4;i++){

for(int j = 0; j < 3; j++){

cin>> Pel[i][j];

total[i] = total[i] + Pel[i][j];

}

float average[i] = total[i]/3;

char gred = PengiraanGred(average[i]);

}

papar(Pel);

}

char PengiraanGred(float ave){

if (ave > 80 && ave <= 100)

return 'A';

else if (ave > 60 && ave <= 79)

return 'B';

else return 'C'

}

void papar(int P[][]){

for (int i = 0; i< 4;i++){

for(int j = 0; j < 3; j++){

cout<<P[i][j]

}

# data[].attributes.body
for(int i=0;i,5;i++)

array(i)=2*i+1

# data[].attributes.body
//

float Array [5];

for (int i = 0;i<5;i++){

cin<<Array[i]; }

for (int i = 0;i<5;i++){

Array[i] = 2*i+1;}

# data[].attributes.body
Variable yang menyimpan banyak nilai yang sama jenis

# data[].attributes.body
ARRAY declared using [ ] operator

# data[].attributes.body
BOLEH MENYIMPAN ALAMAT

# data[].attributes.body
pointer-tidak mengandungi sebarang nilai

# data[].attributes.body
variable tunggal yang menampung banyak nilai

# data[].attributes.body
Array = menyediakan ruang alamat yg dimasukkan oleh pengguna

# data[].attributes.body
Array

Pointer

Struct

# data[].attributes.body
walaupun nilai berubah, alamat tak berubah.