projit_cd
| Subject: need urgent solution please help!!!!!!!!! Mon Feb 11, 2008 4:35 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. |
|
abhas Active member
| Subject: Re: need urgent solution please help!!!!!!!!! Sat Feb 16, 2008 8:25 pm | |
| class p1 { void main(int arr[]) { int s=0; for(inta=0;a<arr.length;a++) s=s+arr[c]*arr[c]; System.out.println("sum:"+s); } } |
|
cherry
| Subject: correction in ya reply to a java prog... Mon Dec 07, 2009 5:33 pm | |
| class p1 { void main(int arr[]) { int s=0; for(int a=0;a<arr.length;a++)//i guess it shud be: arr.length-1(minus one),cuz d lngth of d array wud be more than d cell no.s as d count starts from 0// s=s+arr[c]*arr[c]; System.out.println("sum:"+s); } } |
|
admin Admin
| Subject: Re: need urgent solution please help!!!!!!!!! Mon Dec 07, 2009 9:36 pm | |
| see there he has used <(less than) symbol and not <=(less than or equal to) a<L is same as a<=(L-1)
|
|
Sponsored content
| Subject: Re: need urgent solution please help!!!!!!!!! | |
|
|
|