mirror of
https://github.com/mii443/encrypt.git
synced 2025-08-22 15:05:33 +00:00
新しい型システムの実装途中
This commit is contained in:
10
client.gpsl
10
client.gpsl
@ -9,6 +9,14 @@ fn add(a: num, b: num) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
fn rec(a: num, b: num) {
|
||||
if b > 0 {
|
||||
return rec(a + 2, b - 1);
|
||||
} else {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
print("Input a: ")
|
||||
let a = to_u512(read_line())
|
||||
@ -16,8 +24,6 @@ fn main() {
|
||||
print("Input b: ")
|
||||
let b = to_u512(read_line())
|
||||
|
||||
println("テスト");
|
||||
|
||||
let enc_a = encrypt(a)
|
||||
let enc_b = encrypt(b)
|
||||
|
||||
|
Reference in New Issue
Block a user