Created
September 20, 2018 02:36
-
-
Save zhanglianbo35/33f135d40ec2bd5a6ff6521debe0214a to your computer and use it in GitHub Desktop.
递归算裴波那契数列
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%let a = 0 ; | |
%let b = 1; | |
%put &a; | |
%put &b; | |
%macro xx; | |
%global a b; | |
%if %sysevalf(&a < 10000000000) %then %do; | |
%let a= %sysevalf(&a + &b); | |
%let b= %sysevalf(&a + &b); | |
%put &a; | |
%put &b; | |
%xx | |
%end; | |
%mend; | |
%xx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment