Demo entry 6682000

word

   

Submitted by anonymous on Dec 07, 2017 at 08:18
Language: C++. Code size: 262 Bytes.

void matrix_mul_S(int A[N][N],int B[N][N]){
	for(int i=0;i<N;i++){
		for (int j=0;j<N;j++){
			A[i][j]=rand()%11;
			B[i][j]=rand()%11;
		}
	}
	for( i=0;i<N;i++){
		for(j=0;j<N;j++){
			for( k=0;k<N;k++){
				AB[i][j]+=A[i][k]*B[k][j];
			}
		}
	}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).