#include <iostream>
using namespace std;
int awal [] = {5,7,8};
int akhir [] = {2,3,4};
int n,array_length, result=0;
int main () {
array_length = sizeof(awal) / 4;
for ( n=0 ; n result = awal[n] * akhir[n];
cout << awal[n] <<" * "<< akhir[n] << " = " << result<<"\n";
}
return 0;
}
using namespace std;
int awal [] = {5,7,8};
int akhir [] = {2,3,4};
int n,array_length, result=0;
int main () {
array_length = sizeof(awal) / 4;
for ( n=0 ; n
cout << awal[n] <<" * "<< akhir[n] << " = " << result<<"\n";
}
return 0;
}
Berikut Screenshot atau hasil source code yang di jalankan ;
Terima Kasih Semoga bisa membantu ...
Mantap yal.. 👏
BalasHapus