(defun fun (/ n fltnum asList sepList maxnum) (setq n 0 fltnum T ) (while fltnum (setq n (1+ n)) (setq fltnum (getreal "\n输入实数:")) (setq asList (append asList (cons fltnum n))) (setq sepList (append sepList (list fltnum))) ) (setq maxnum (apply 'max sepList)) (cdr (assoc maxnum asList)) ) |