Package

Source Code of Permutation

import java.util.Scanner;

public class Permutation {
  public static void main ( String[] args ) {
    double nbr1;
    double nbr2;
    double temporary;

    System.out.println("Please enter two number each follow by [Enter]");

    Scanner clavier = new Scanner ( System.in );
    nbr1 = clavier.nextDouble();
    nbr2 = clavier.nextDouble();

    System.out.println(nbr1+"|"+nbr2);

    temporary = nbr1;
    nbr1 = nbr2;
    nbr2 = temporary;
   
    System.out.println(nbr1+"|"+nbr2);
    }
  }
     
TOP

Related Classes of Permutation

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.