CODE: Select All package javasapxep;import java.util.Scanner;public class Javasapxep { static void sapXepTang(int c, int d) { while(c<=d){ System.out.print(c+","); c++;} } static void sapXepGiam(int c, int d) { while(d>=c){ System.out.print(d+","); d--;} } public static void main(String[] args) { Scanner Nhap=new Scanner(System.in); System.out.println("Nhap c="); int c = Nhap.nextInt(); System.out.println("Nhap d="); int d = Nhap.nextInt(); System.out.print("Sắp xếp tăng là : "); sapXepTang(c,d); System.out.println(); System.out.print("Sắp xếp giảm là : "); sapXepGiam(c,d); }}