Skip to main content

Posts

Showing posts from February, 2020

Let's CODE IT...Bubble Sort In Matrix Ascending Order

Let's do this in easiest way..... ISC Practical 2020 **************************** HERE IS THE CODE: *************************** * import java.util.*; public class Bubble_Sort_In_Matrix_Ascending_Order {     public static void main()     {         Scanner sc=new Scanner(System.in);         int n=0,temp,i,j;         System.out.println("Enter the number of Rows");         int r=sc.nextInt();         System.out.println("Enter the number of Columns");         int c=sc.nextInt();         int arr[][]=new int[r][c];         int brr[]=new int[r*c];         System.out.println("Enter the elements of Matrix");         for( i=0;i<r;i++)         {             for( j=0;j<c;j++)         ...

Let's CODE IT...Bubble Sort In Matrix Descending Order

Let's do this in easiest way..... ISC Practical 2020 **************************** HERE IS THE CODE: *************************** * import java.util.*; public class Bubble_Sort_In_Matrix_Descending_Order {     public static void main()     {         Scanner sc=new Scanner(System.in);         int n=0,temp,i,j;         System.out.println("Enter the number of Rows");         int r=sc.nextInt();         System.out.println("Enter the number of Columns");         int c=sc.nextInt();         int arr[][]=new int[r][c];         int brr[]=new int[r*c];         System.out.println("Enter the elements of Matrix");         for( i=0;i<r;i++)         {             for( j=0;j<c;j++)         ...

Let's CODE IT...Boundary elements in a matrix

If your're looking for easy method to print boundary elements,then you are at the right place..... **************************** HERE IS THE CODE: **************************** import java.util.*; class Only_Boundary_Elements {     public static void main()     {         Scanner sc=new Scanner(System.in);         int i,j,Temp,n=0;         System.out.println("Enter  the Number of Rows");         int r=sc.nextInt();         System.out.println("Enter  the Number of Columns");         int c=sc.nextInt();         int arr[][]=new int[r][c];         System.out.println("Enter the Elements of Matrix");         for(i=0;i<r;i++)         {             for(j=0;j<c;j++)             { ...