Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- =====================================================
- chapter 6: Functions
- Ex9:
- =====================================================
- */
- public class MyProgram {
- public static int max0Rectangle(int matrix[][]){
- int size=0;
- return size;
- }
- public static void main(String[] args) {
- int matrix1[][]={{0,0,0,0,0},{0,0,0,0,0},{0,0,1,0,0},{0,0,0,0,0},{0,0,0,0,0}};
- int matrix2[][]={{0,0,0,0,0},{0,0,0,0,0},{0,0,0,0,0},{0,0,0,1,0},{0,0,0,0,0}};
- int res;
- res=max0Rectangle(matrix1);
- System.out.println(res);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment