summaryrefslogtreecommitdiff
path: root/tests/Factorial-error.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Factorial-error.java')
-rw-r--r--tests/Factorial-error.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/Factorial-error.java b/tests/Factorial-error.java
deleted file mode 100644
index 46ec59a..0000000
--- a/tests/Factorial-error.java
+++ /dev/null
@@ -1,16 +0,0 @@
-class Factorial{
- public static void main(String[] a){
- System.out.println(new Fac().ComputeFac(10));
- }
-}
-
-class Fac {
- public boolean ComputeFac(int num){ //TE
- int num_aux ;
- if (num < 1)
- num_aux = 1 ;
- else
- num_aux = num * (this.ComputeFac(num-1)) ;
- return num_aux ;
- }
-}