Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Java Programs

Java Programs

Ratings: (0)|Views: 77 |Likes:
Published by anil agarwal
java programs for practicle in lab
java programs for practicle in lab

More info:

Published by: anil agarwal on Jul 26, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

01/17/2011

pdf

text

original

 
Practicle File of 
Programming in JAVA
Submitted for the Partial fulfillment of the Requirement for the Awardof Degree of MCA
 N.C. INSTITUE OF COMPUTER SCIENCEISRANA,PANIPAT
SUBMITTED TO:-SUBMITTED BY:-
Mr.Vikas RahejaAnil Kuma1504874
TH
SEMESTER 
Program No:-.Date:-
 
WRITE A PROGRAM FOR MATRIX OPERATION.
class MatrixMulti{public static void main(String args[]){int a[][]={{1,2},{3,4}};int b[][]={{1,2},{3,4}};int c[][]=new int[2][2];for(int i=0;i<2;i++){for(int j=0;j<2;j++){for(int k=0;k<2;k++){c[i][j]=c[i][j]+a[i][k]*b[k][j];}}}for(int i=0;i<2;i++){for(int j=0;j<2;j++){System.out.println(c[i][j]);}}}}
 
OUTPUT:-

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
syriluit liked this
Anurag Goel liked this
LMarino66 liked this
vishal_shah_12 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->