//Program to get transpose of a matrix
import java.io.*;
class transpose
{
public static void main(String args[ ])throws IOException
{
InputStreamReader x= new InputStreamReader(System.in);
BufferedReader y=new BufferedReader(x);
int a[ ][ ]=new int[ ][ ];
int i,j,n,n1;
System.out.println(“Enter the number of row in matrix”);
String s1=y.readLine();
n=Integer.parseInt(s1);
System.out.println(“Enter the number of coloumn in matrix”);
String s2=y.readLine();
n1=Integer.parseInt(s2);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
System.out.println(“Enter value of the “+(j+1)+” coloumn in “+(i+1)+” row”);
String s3=y.readLine();
a[i][j]=Integer.parseInt(s3);
}
}
System.out.println(“Matrix enter”);
for(i=0;i<n;i++)
{
for(j=0;j<n1;j++)
{
System.out.print(“\t”+a[i][j]);
}
System.out.println();
}
System.out.println(“Transpose of a matrix”);
for(i=0;i<n;i++)
{
System.out.println();
for(j=0;j<n1;j++)
{
System.out.print(“\t”+a[j][i]);
}
}
}
}
Home      |      About Us      |     Portfolio      |      Services      |      Courses      |     Career      |      Cost      |      Contact Us
Services
  SEO   
  Link Building
  Data Entry
  Web Design and development
  Web Application development
 

Graphic and multimedia

  E-Commerce Solutions
  Software development
  Web Marketing & Promoting
  Internet Marketing
  IT Outsourcing
  Multimedia/CD Presentation
  Synopsis Ideas
  Project Ideas
  Placement Papers
  Live Project Training
  Programming & Projects
  Faq
  Training @balujalabs
 
 
Method
 

To get transpose of a matrix

 

 

 

 

 

 

 

 

 

      

                                                                                                                                    

1 To initialize an array and display the elements of an array.
2 To find the number of students having the height greater then 170 and weight less then 50
3 Program to arrange the element of an array in ascending order
4 Program to input n element of an array and find the sum.
5 To find maximum element of an array.
6 To search an element in an array.
7 Program to find sum of two matrixes.
8 To get transpose of a matrix
9 To find length of a string.
10 To extract a substring from a string.
11 To convert a string from upper to lower case and lower to upper case.
12 To demonstrate the use of charAt( ) function.
13 To demonstrate the use of indent( ) function.
14 To demonstrate the use of equals( ) function.
15 To demonstrate the use of equals Ignore case( ) function.