Update OOP/Java/Lab/Week4/TraceNorm.java
This commit is contained in:
		
							parent
							
								
									9e7c46ea8d
								
							
						
					
					
						commit
						3c0de68177
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,10 @@ class TraceNorm {
 | 
			
		|||
        System.out.println("Enter the elements of the matrix:");
 | 
			
		||||
        for (int i = 0; i < n; i++) {
 | 
			
		||||
            for (int j = 0; j < n; j++) {
 | 
			
		||||
                matrix[i][j] = sc.nextDouble();
 | 
			
		||||
                System.out.print(
 | 
			
		||||
                    "Enter the element at (" + i + "," + j + "): "
 | 
			
		||||
                );
 | 
			
		||||
                matrix[i][j] = sc.nextInt();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue