C
scanf("%d",&n);
printf("Enter the numbers");
for(i=0;i<n;i++)
scanf("%d",&a[i]);
.
.
.
.
.
for(i=0;i<n;i++)
printf("Array is %d",a[i]);
LISP
(defun main()
(print "Enter the Limit")
(setf l(read))
(setf ar ( make-array l))
(print "Enter the Elements")
(dotimes (i l)
(setf (aref ar i)(read)))
(dotimes (i l)
(print (aref ar i))
)
)
Download
ReplyDeletehttp://kaz.dl.sourceforge.net/project/clisp/clisp/2.49/clisp-2.49-win32-mingw-big.exe
Run:
Do coding and all in wordpad...
Copy and Paste it into GNU-CLISP window
(trace function-name)
then
(function-name)