programEX1 - import import import import import import i...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Scanner; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; import java.lang.String; i public class programEX1 { static Scanner console = new Scanner(System.in); static int public static void main(String[] args)throws FileNotFoundException, IOException { String num; num = console.next(); int len = num.length(); char[] charArray = new char[len]; for (int i = 0; i < len; i++) { charArray[i] = num.charAt(i); } String number = new String(charArray); for( int i=0; i < len; i++) { System.out.print(" "+num.charAt(i)); } System.out.println(); System.out.println("The Total length of the string is: " + len); } } void inverse3(){ //inverse for 3x3 matrix int p[3][3];// the matrix that is entered by user int q[3][3];//the transpose of a matrix p int C[3][3];//the adjunct matrix of transpose of a matrix p not adjunct of p double X[3][3];//the inverse int i,j; float x,n=0; cout<<"enter matrix"<<endl; for (i=0;i<3;i++) { for (j=0;j<3;j++) { cin>>p[i][j]; q[i][j]=0; C[i][j]=0; } } for (i=0,j=0;j<3;j++) {
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

programEX1 - import import import import import import i...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online