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:
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:
0 comments:
Confused? Feel free to ask
Post a Comment