Skip to content Skip to sidebar Skip to footer
Welcome to danskuyy.com

CARA MEMBUAT ARRAY BILANGAN AKAR

Berikut ini adalah cara membuat Array bilangan akar, silahkan anda praktekan ya.

#include<iostream>

using namespace std;

main()

{

cout<<"\n\MFY\n\n=======================================\n";

int bil[5]={1,2,3,4,5};

char kar[3]={'A','B','C'};

cout<<"Bilangan\t: ";

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

{

cout<<bil[i]<<" ";

}

cout<<"\n\nKarakter\t: ";

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

{

cout<<kar[j]<<" ";

}

return 0;

}


Jika anda berhasil maka outputnya seperti gambar dibawah ini.



Post a Comment for "CARA MEMBUAT ARRAY BILANGAN AKAR"