Powered By Blogger

Friday, May 22, 2009

MATRIX MULTIPLICATION IN JAVA

import java.io.*;
class matrixMulB
{
public static void main(String args[])throws IOException
{

String q,r,s;

int size,i,j,k,sum;

int A[][]=new int[50][50];
int B[][]=new int[50][50];
int C[][]=new int[50][50];
System.out.print("Enter matrix sizes:");
BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));
q=obj.readLine();
size=Integer.parseInt(q);
System.out.print("\n");
System.out.print("\t\tMatrix A is:\n\n");
for(i=0;i
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP