Skip to content

Write a program in Lisp to enter a number n and create a list of length n of repeated elements

AIM: Write a program in Lisp to enter a number n and create a list of length n of repeated elements. 
Count the number of repetitions of each element in the list. Display the count value of each element in character.

Post by: Sohrab Vakharia

( Eg (1 2 1 1 3) should give the output “element 1: three times”).

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!