Procedure Rata-rata
void rata2(int data[],int jum){
int sum=data[0];
for (int i=1; i
}
cout<<"\nRata-rata = "<<(float) sum/jum;
}
procedure tukar nilai bilangan
void tukar(int *a,int *b){
int temp;
temp = *a;
*a = *b;
*b = temp;
}
Minggu, 17 Januari 2010
Procedure Rata-rta dan Tukar Bilangan di C++
Minggu, Januari 17, 2010
Galiarta
No comments
0 comments:
Posting Komentar