in this i will take two 2Darray from user than multiply both of them and shows the output on screen.
the error is that , it prints 0 0 0 in last column of resultant array which comes after...
Type: Posts; User: parth31
in this i will take two 2Darray from user than multiply both of them and shows the output on screen.
the error is that , it prints 0 0 0 in last column of resultant array which comes after...
now its totally upto you, i write the code in easy way as easy i can write.
like? can you please elaborate...
oh , you want take input from user .
wait then .
Scanner sc = new Scanner (System.in);
System.out.println(" enter your decimal number ");
double number = sc.nextDouble();
...
now run the code. there is no errors right now .
if you are interested in pair programming then E mail me at parthmishra1131@gmail.com
package arrays;
import java.util.Scanner;
public class UserInputMulti2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int rows1, cols1, rows2, cols2;
[QUOTE=Mounkaila144;172218]hello
[code=Java] public static void main(String[] args) {
Scanner sc=new Scanner(System.in ); //(import java.util.Scanner;) before public static void main
...