Minggu, 10 April 2011

Transpose pada java

import java.io.*;
class transpose
{
public static void main (String[] args) throws Exception
{
BufferedReader input = new BufferedReader( new InputStreamReader (System.in));
System.out.print("masukan jumlah ordo matriks n*n =");
int n=Integer.parseInt(input.readLine());
int [][] matrika = new int [n][n];
int [][] matrikc = new int [n][n];
System.out.println("Matriks A:");
for(int i=0;i

Tidak ada komentar:

Posting Komentar