projit_cd
| Subject: need urgent solution please help!!!!!!!!!!! Mon Feb 11, 2008 4:33 pm | |
| 1.wap to find the sum of the squares of numbers stored in an array. 2.wap to multiply two matrices. 3.wap to copy the alternative values of one array into another arry in reverse order. 4.wap to add two matrices.both the matriceshave the same dimensions. 5.wap to find the row sum and column sum of a matrix. |
|
nausheen Active member
| Subject: Re: need urgent solution please help!!!!!!!!!!! Mon Feb 11, 2008 7:37 pm | |
| import java.io.*; public class sum { int num[]=new int[10]; int ss; public void get()throws IOException { InputStreamReader ir =new InputStreamReader(System.in); BufferedReader br=new BufferedReader(ir); System.out.println("enter 10 numbers"); for(int i=0;i<10;i++) { num[i]=Integer.parseInt(br.readLine()); ss=ss+(num[i]*num[i]); } System.out.println("sum of the squares of numbers in the array is "+ss); }
} |
|
projit_cd
| Subject: Re: need urgent solution please help!!!!!!!!!!! Tue Feb 12, 2008 12:39 am | |
| thanks for your help.but i also need the rest of the solution for my exam so please help me as soon as possible .its very urgent .once again thanks a lot. |
|
Sponsored content
| Subject: Re: need urgent solution please help!!!!!!!!!!! | |
|
|
|