HAI,I am JOHN working as a software engineer at TECHNOPARK....I am a person with a good sense of humour, who wants to take all difficult situation in life in humour. I am a mix of a serious and a humurous character. I connect well with people - adults and kids both. I believe in three R's: Respect for self, Respect for others and Responsibility for all my actions. I like to have my own space sometimes and respect other's freedom as well.I take my own decisions in life and ofcourse take advice from elders if required. My parents taught me to be decisive and independent since childhood by involving me and my sister in any kind of family decision.. I like music iam not a singer, now I am a bathroom singer.Your valuable comments & suggestions to improve this site are welcome & can be posted by clicking the link ‘Comments’. Care has been taken while constructing this website, if any error find, please forgive and inform me quickly
DO U WANT FREE MALAYALAM MP3,MALAYALAM FILM SONGS ,LATEST MALAYALAM FREE SONGS JUST CLICK THE GIVEN LINK BELOW. FOR FREE MALAYALAM MOVIE DOWNLOADS AND FREE DOWNLOADS THE LATEST MALAYALAM SONGS AND MALAYALAM DEVOTIONAL SONGS YOU JUST CLICK THE LING GIVEN BELOW .THIS MALAYALAM SONGS ARE ABSOLUTELY FREE FOR DOWNLOADING

DOWNLOAD FREE THE NEW MALAYALAM SONGS AND KAROAKE AND GET AN IPOD FREE
www.srikumar.com/Music/mp3_music_and_free_downloads.htm
import java.io.*;
class magic
{
public static void main(String args[])throws IOException
{
int m,n,f,i,j,row,col,total=0;
int a[][]=new int[10][10];
DataInputStream ip=new DataInputStream(System.in);
System.out.println("Enter the row and col of the matrix");
m=Integer.parseInt(ip.readLine());
n=Integer.parseInt(ip.readLine());
if(m!=n)
System.out.println("matrix not possible");
if((m==n)&&(m%2==0))
System.out.println("matrix not possible");
else
{
f=m*n;
for(i=0;i {
for(j=0;j {
a[i][j]=0;
}
}
row=1;
col=(n+1)/2;
for(i=1;i<=f;i++)
{
a[row][col]=i;
if((row-1==0)&&(col-1==0))
{
row=row+1;
col=col;
continue;
}
if(a[row-1][col-1]!=0)
{
row=row+1;
col=col;
continue;
}
if(row-1==0)
row=n;
else
row=row-1;
if(col-1==0)
col=n;
else
col=col-1;
continue;
}
}

for(i=1;i<=m;i++)
{
for(j=1;j<=n;j++)
{


System.out.print("\t"+a[i][j]);
if(i==j)
total=total+a[i][j];
}
System.out.print("\n");

}
System.out.println("Sum of the diagonal is "+total);
}
}