This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache Maven 3.3.9 | |
Maven home: /usr/share/maven | |
Java version: 1.8.0_161, vendor: Oracle Corporation | |
Java home: /usr/lib/jvm/java-8-oracle/jre | |
Default locale: en_US, platform encoding: UTF-8 | |
OS name: "linux", version: "4.13.0-38-generic", arch: "amd64", family: "unix" | |
[DEBUG] Created new class realm maven.api | |
[DEBUG] Importing foreign packages into class realm maven.api | |
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core | |
[DEBUG] Imported: javax.enterprise.util.* < plexus.core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class ReverseFactorial { | |
public static void main(String[] args) { | |
// TODO code application logic here | |
Scanner sc = new Scanner(System.in); | |
int number = sc.nextInt(); | |
int check = number; | |
int result = 2; |