Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ssss
Language: C/C++
Code:
#include <iostream>
using namespace std;

const int n=4;

int main(){
     int vett[n][n];
     for(int i=0;i<n;i++)
          for(int j=0;j<n;j++){
               if(i==j)
                    vett[i][j]=1;
               else
                    vett[i][j]=0;
               if(j==3)
               cout<<" "<<vett[i][j]<<endl;
               else
               cout<<" "<<vett[i][j];}
                    

}
Comments: