change any key to enter

This commit is contained in:
2023-06-19 23:59:41 +01:00
parent 82b14f09a3
commit 2ef823580d
2 changed files with 2 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ func getPassword(args ...any) (string, error) {
}
func pause() {
fmt.Print("Press any key to continue...")
fmt.Print("Press Enter to continue...")
term.ReadPassword(int(os.Stdin.Fd()))
fmt.Println()
}

View File

@@ -2,8 +2,7 @@ let zero = 1e-1000
let diff(f) = (x) = (f(x + zero) - f(x)) / zero
let f(x) = do
return x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1
let f(x) = x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1
let x = 100
let d = 0