#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char
*argv[]){
int a, b;
int Matriks[10][10];
cout<<"\tMatrik ordo
4x4\n"<<endl;
cout<<"==> Input
Matrik 4x4:\n";
for(a=1; a<=4; a++){
for(b=1; b<=4; b++){
cout<<"Masukkan
["<<a<<", "<<b<<" ] = ";
cin>>Matriks[a][b];
}}
cout<<endl;
cout<<"==> Output
Matrik 4x4:: \n"<<endl;
for(a=1; a<=4; a++){
for(b=1; b<=4; b++){
cout<<Matriks[a][b]<<"
";
}
cout<<endl;
}
cout<<endl;
if(Matriks[a=1][b=1] == 1){
if(Matriks[a=2][b=2] == 1){
if(Matriks[a=3][b=3] == 1){
if(Matriks[a=4][b=4] == 1){
cout<<"==> Hasil
: Matriks Diagonal "<<endl;
}}}}
else{cout<<"==> Hasil
: Bukan Matriks Diagonal!"<<endl;}
cout<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Hasil Running Program :
As claimed by Stanford Medical, It is in fact the SINGLE reason this country's women get to live 10 years longer and weigh 42 lbs lighter than we do.
BalasHapus(And actually, it has NOTHING to do with genetics or some hard exercise and EVERYTHING around "HOW" they are eating.)
P.S, What I said is "HOW", and not "WHAT"...
Click this link to see if this little quiz can help you find out your true weight loss potential