Возведение в степень
This commit is contained in:
4
Костин Андрей/power.rkt
Normal file
4
Костин Андрей/power.rkt
Normal file
@@ -0,0 +1,4 @@
|
||||
#lang racket
|
||||
(define (power n m)
|
||||
(if (= m 0) 1
|
||||
(* n (power n (- m 1)))))
|
||||
Reference in New Issue
Block a user