how a friend is she?
added dizziness was I think together, but never broke.
ok this time we will try to create a matrix with the array before we make a program would be the existence of a first draft is why we need the existence of an algorithm yes first and then implemented in a programming language.
1. determine many of its input
2. msukkan lot numbers
3. if still not memenui repeat No. 2
4. if it is memenui go to No 5
5. for (int i = 0; i <2; i + +) {
court <<"row" <<<":";="" for (int j = 0; j <2; j + +)
#include
#include
void baca ( int a[][2]);
void tulis (const int a[][2]);
int main() {
int a[2][2];
baca (a);
tulis(a);
return 0;
}
void baca(int a[][2])
{
cout<<”masukan 4 bilangan, 2 bilangan pembaris: \n”;
for(int i=0;i<2;i++){
cout<<”baris”<<<”:”; for(int j=0; j<2;j++)
cin>>a[i][j];
}
}void tulis (const int a[][2] ){
for(int i=0;i<2;i++){
for(int j=0; j<2;j++)
cout<<” “}
0 comments:
Posting Komentar