Updated with Shultz's new changes
This commit is contained in:
Executable → Regular
+3
-2
@@ -2,7 +2,7 @@ main()
|
||||
|
||||
def fact( n )
|
||||
|
||||
if lt(n 1)
|
||||
if le(n, 1)
|
||||
return 1
|
||||
else
|
||||
temp = fact( n-1 )
|
||||
@@ -15,6 +15,7 @@ def main()
|
||||
|
||||
"enter n: "
|
||||
n = input()
|
||||
print( fact(n) )
|
||||
print(n) "! = " print(fact(n)) nl()
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
Executable → Regular
+4
-2
@@ -17,7 +17,9 @@ def main()
|
||||
x1 = (-b - sqrt(disc) ) / (2*a)
|
||||
x2 = (-b + sqrt(disc) ) / (2*a)
|
||||
|
||||
"x1: " print(x1) "\n"
|
||||
"x2: " print(x2 ) "\n"
|
||||
"x1: " print(x1) nl()
|
||||
"x2: " print(x2 ) nl()
|
||||
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user