Menghitung Bilangan Genap menggunakan Rekursif di LISP

Ketentuan Program :

  1. Gunakan Rekursif.
  2. Tentukan Basis dan Rekuren nya.

NOTASI

JUDUL

Menghitung Bilangan Genap

DEFINISI DAN SPESIFIKASI

hitgenap : List of Integer -> integer

{hitgenap(L) : digunakan untuk menghitung bilangan genap dalam sebuah list of integer}

REALISASI

hitgenap(L)

if IsEmpty(L) then

0

else

if evenp(FirstElmnt(L)) then

1 + hitgenap(Tail(L))

else

hitgenap(Tail(L))

APLIKASI

hitgenap ‘(1 2 3 4 5 6 7 8 9)

-> 4

hitgenap ‘(1 2 3 4 10 6 7 8 9)

-> 5

hitgenap ‘(2 2 2 4 5 6 7 8 9)

-> 6

 

PENERAPAN DI BAHASA LISP

(defun hitgenap(L)

(if(null L)

0

(if(evenp (car L))

(+ 1 (hitgenap (cdr L)))

(hitgenap (cdr L))

)

)

)

 HASIL

Menghitung Bilangan Genap

Menghitung Bilangan Genap

9,483 thoughts on “Menghitung Bilangan Genap menggunakan Rekursif di LISP

  1. I am only commenting to inform you of the amazing experience our girl
    experienced reading the blog. She noticed numerous pieces,
    which included how like to possess an amazing giving nature to get certain individuals really easily learn certain multifaceted things.

    You definitely exceeded visitors’ desires. I appreciate you for rendering the important,
    healthy, educational as well as easy tips about the topic.

    Look at my website … london tile mosaic company

  2. To state that this is troublesome is an affront and also an exaggeration to the
    idea of the best deodorant for guys. To remedy this, there are a couple of factors that could consider when choosing the very best
    aerosol antiperspirant for guys. Initially, a light-spraying aerosol which creates
    a great mist is more suitable to those that spray thick jets of liquid.
    I have actually detailed a few secure antiperspirants for the females to utilize.

    Look at my website :: the best deodorant for sweating

  3. Thank you for sharing your info. I truly appreciate your efforts and
    I am waiting for your further write ups thanks once again.

    my webpage – advanced garcinia cambogia free trial (Myra)

  4. Hi, its good piece of writing on the topic of media print, we all know media is a fantastic source of facts.

    Also visit my web site: garcinia cambogia and green coffee
    bean free trial (Delores)

  5. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an impatience over that
    you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this increase.

    my web blog :: buy garcinia cambogia free trial (April)

  6. Pretty component to content. I just stumbled upon your site and in accession capital to assert that I
    acquire actually loved account your weblog posts. Any way I’ll be subscribing for
    your feeds and even I achievement you get right
    of entry to consistently quickly.

    Also visit my web-site … garcinia cambogia
    max cleanse free trial (Anneliese)

  7. Hey! This is my first comment here so I just wanted to give
    a quick shout out and tell you I truly enjoy reading
    through your blog posts. Can you recommend any other blogs/websites/forums that cover the same
    topics? Thank you so much!

    My website – monarch institute (Beatris)

  8. What i don’t realize is in reality how you are now not actually a lot more smartly-preferred than you
    may be now. You are very intelligent. You understand therefore considerably with
    regards to this matter, made me in my opinion believe
    it from a lot of varied angles. Its like men and women don’t seem to be involved until it’s one thing to do with Lady gaga!
    Your individual stuffs excellent. Always take care of it up!

    My web page online training monarch

  9. Hey There. I discovered your weblog the usage of msn. That is
    a very well written article. I’ll make sure to bookmark it
    and return to read extra of your helpful information. Thank you for the post.
    I’ll definitely comeback.

    My website: Monarch.Edu.Au

  10. I absolutely love your site.. Very nice colors & theme. Did you
    develop this amazing site yourself? Please reply back as I’m attempting
    to create my very own site and want to learn where you got this from or exactly what the theme is named.
    Many thanks!

    Feel free to surf to my homepage – monarch institute (Shona)

  11. It’s amazing to pay a visit this site and reading the views of all
    mates on the topic of this article, while I am also keen of getting know-how.

    Also visit my web-site … monarch institute – Julius

  12. Hi, I think your blog might be having browser compatibility issues.
    When I look at your blog in Opera, it looks fine but when opening
    in Internet Explorer, it has some overlapping. I just wanted to
    give you a quick heads up! Other then that, great blog!

    my web-site … monarch institute; Sheree,

  13. Hello There. I discovered your weblog using msn. This is an extremely well written article.
    I will make sure to bookmark it and come back to learn extra of your
    useful information. Thank you for the post.
    I will definitely return.

    my web-site :: monarch institute; Dianne,

  14. I love looking through an article that can make men and women think.
    Also, thank you for allowing for me to comment!

    Review my homepage – natural garcinia cambogia and natural
    green cleanse free trial (Jasmine)

  15. I read this piece of writing completely on the topic of the difference of most recent and preceding technologies, it’s amazing article.

    Have a look at my web site: High speed camera (Merlin)

  16. My family every time say that I am wasting my time here at
    web, but I know I am getting knowledge all the time by reading
    such pleasant posts.

    My homepage; sbiancamento denti (Sabine)

  17. Howdy! Do you know if they make any plugins to
    assist with Search Engine Optimization? I’m trying to get my blog
    to rank for some targeted keywords but I’m not seeing
    very good results. If you know of any please share.
    Cheers!

    Check out my webpage :: dentista

  18. My developer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on several websites for
    about a year and am concerned about switching to another platform.
    I have heard fantastic things about blogengine.net. Is there a way I
    can transfer all my wordpress content into it? Any kind
    of help would be greatly appreciated!

    My weblog http://www.monarch.edu.au

  19. Its such as you learn my mind! You seem to know so much approximately this,
    like you wrote the ebook in it or something. I believe that you can do with a few % to
    force the message home a little bit, but other than that, that is
    magnificent blog. An excellent read. I will definitely
    be back.

    Also visit my web-site :: sbiancamento denti (Rosalina)

  20. A bit might be paid by you but it’s so worth it. I have washed plenty of glass with basic table
    salt and ISO plus they appear new everytime to brand.

    Also visit my web site cheap glass tobacco pipes for sale
    (Roman)

  21. Thank you for the auspicious writeup. It in truth was once a leisure
    account it. Glance complex to more brought agreeable from you!

    However, how can we keep in touch?

    Also visit my web page … traslocare – Milo,

  22. Excellent beat ! I would like to apprentice
    while you amend your site, how can i subscribe for a blog web site?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this your
    broadcast offered bright clear idea

    Take a look at my weblog; traslocare – Byron

  23. I was curious if you ever considered changing the structure of your site?

    Its very well written; I love what youve got to say. But maybe you could
    a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 images.
    Maybe you could space it out better?

    Also visit my web site … seo – Dani

  24. Right now it seems like Drupal is the best blogging
    platform available right now. (from what I’ve read) Is that what you’re using on your
    blog?

    Feel free to visit my weblog :: sbiancamento denti (Caridad)

  25. This piece of writing offers clear idea in favor of the new visitors of blogging, that really how to do running a blog.

    Feel free to surf to my web site :: seo (Brain)

  26. Nice post. I learn something new and challenging on websites I stumbleupon on a daily basis.
    It will always be interesting to read content from other
    authors and use a little something from other sites.

  27. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?
    My website is in the exact same area of interest as yours and my users would genuinely benefit from some of
    the information you provide here. Please let me know if this alright with you.
    Cheers!

    My web blog skin cream

  28. Whenever you can make the reward personal to the recipient, it can be sure to be well received.
    Criterions are similar to the applicant have to be a stable inhabitant connected with
    UK along with an adult, store a account not more than Ninety
    days old and also a regular jobs earning at the least 1000 a month.
    These kind of house loan guidelines can help ensure that borrowers
    hold the documents that they can need for a residence mortgage loan

    Here is my blog :: http://go.com/feedback/testing/social12

  29. Greetings! I’ve been reading your website for a long time now
    and finally got the courage to go ahead and give you a shout out from New Caney Texas!
    Just wanted to say keep up the good job!

    my web page healthy choice garcinia cambogia free trial (Shani)

  30. When the water is also warm if you put it in a glass bong then you certainly risk the chance of the glass bong disfiguring or cracking.

    Also visit my webpage; glass bongs cheap usa, Giuseppe,

  31. I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed
    about my trouble. You’re wonderful! Thanks!

    Here is my site :: garcinia cambogia free 14 day trial – Candra

  32. It’s amazing to pay a quick visit this web page and reading the views of all
    friends concerning this post, while I am also keen of
    getting knowledge.

    Visit my web page – nagelpilz behandlung – Madeline

  33. Using a more mainstream aspect, the sunroom has multiplied factors of glass that kind in to a pointed ceiling,
    furthermore made from glass panes.

    Here is my site head shop wholesale (Keesha)

  34. I don’t know whether it’s just me or if everyone else encountering problems
    with your site. It seems like some of the text
    in your content are running off the screen. Can someone else please comment and let me know if this
    is happening to them as well? This may be a problem with my browser because I’ve had this happen previously.
    Appreciate it

    Review my homepage … advance auto coupon codes
    (Deneen)

  35. If some one desires expert view regarding running a blog
    after that i propose him/her to pay a quick
    visit this website, Keep up the pleasant work.

    Also visit my homepage advance auto parts coupon (Hye)

  36. I’m curious to find out what blog system you’re utilizing?
    I’m having some small security problems with my latest website and I would like to
    find something more safeguarded. Do you
    have any solutions?

    Here is my web blog best computer speakers for the money (http://www.laad.it/blog/scienza-under-18-parco-villa-sabucchi-vii-edizione-giovedi-7-e-venerdi-8-maggio-2015.html)

  37. Great beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog
    web site? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your broadcast provided bright clear concept

    Feel free to visit my website best computer speakers best computer speakers 2014 best computer speakers under 100 best computer speakers under 50 best computer speakers with subwoofer best computer speakers 2015 best computer speakers for
    music the best computer speakers best computer speakers under 200 what are the best
    computer speakers best computer speakers for
    the money best computer speakers 2.1 best computer speakers for gaming best computer speakers
    under $100 best computer speakers with bass best computer speakers with subwoofer reviews best computer speakers for bass best computer
    speakers under 150 best computer speakers for the price
    best computer speakers 5.1 best computer speakers
    2013 best computer speakers review best computer speakers bass
    10 best computer speakers best wireless computer speakers, floridafamilylab.com,

  38. Hello all, here every person is sharing these kinds of experience, so it’s nice to read
    this web site, and I used to go to see this blog
    all the time.

    My web-site; advance auto parts promo code – Minda,

  39. Quit and simply visualize a flooding from flawed plumbing harming a good deal of your cherished possessions and you don’t
    have any buy to let insurance aviva (Lovie) cover.

  40. His insurance policy business have called today to say they would love to come out
    and also evaluate the damage to my car still.

    My web blog :: http://spozywczy.farmanagranicy.pl/component/k2/item/2-piankowiec-czyli-ciasto-biszkoptowe-z-legumin%E8%86%AE/2-piankowiec-czyli-ciasto-biszkoptowe-z-legumin%E8%86%AE?limitstart=0&amp

  41. If you have an all new motorhome or it is over a particular amount after that you might wish to provide
    this kind some factor to consider.

    My webpage … rv insurance massachusetts – quena.ca

  42. There are numerous steps you usually takes to cut back the price of cover, if you’re planning
    to reap the benefits of cheaper payments.

    Also visit my site: minicab insurance uk (Mittie)

  43. The sum total of every purchase is inserted on each row plus a solitary correspondence used to then examine the insurance cab
    card txdot (Nida) expense to the ray needed.

  44. When getting public liability insurance for community groups (Abbie) obligation insurance coverage, your company will likely
    ask you a variety of questions associating with your business and its methods.

  45. Howdy would you mind sharing which blog platform
    you’re using? I’m planning to start my own blog in the near future but I’m having
    a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique.
    P.S Sorry for being off-topic but I had to ask!

    Feel free to visit my web-site :: advance auto coupon codes

  46. She spoke to journalists here recently after signing an MoU with International to offer
    I.ExpatCARE to outbound and inbound expatriates.

    My webpage – minicab insurance under 25 (Crystal)

  47. With 250,000+ UK consumers, 95 % of those which rate them state they are good or outstanding
    – click now for a fast (and fuss-free) quote.

    Also visit my web-site; rent guarantee insurance comparison (zacbird.com)

  48. I like the helpful info you provide in your articles.
    I will bookmark your weblog and check again here regularly.
    I am quite sure I will learn many new stuff right here! Best
    of luck for the next!

    Feel free to visit my blog post what are the best computer speakers (dc-iber.ru)

  49. The Court discovers Proprietor breached the warranty
    of habitability for the construction duration beginning the last week in February 2011.

    my homepage :: buy to let insurance average cost, Rosaura,

  50. It’s appropriate time to make a few plans for the long run and it is time to
    be happy. I have learn this post and if I could I desire to
    counsel you some attention-grabbing issues or tips.
    Perhaps you can write next articles referring to this article.
    I desire to learn more things approximately it!

  51. hi!,I like your writing so so much! share we communicate more approximately your article on AOL?
    I require an expert in this area to unravel my problem.
    Maybe that’s you! Looking forward to look you.

  52. Hi there, I found your blog via Google while looking for
    a comparable subject, your site came up, it seems good.
    I’ve bookmarked it in my google bookmarks.
    Hi there, simply became alert to your weblog via Google, and
    found that it is truly informative. I am going to
    watch out for brussels. I will appreciate in case you continue this
    in future. Numerous folks will probably be benefited
    from your writing. Cheers!

    Also visit my blog post – best golf tips Phoenix

  53. I ‘d really love to be a component of on-line community where I
    could interview from other skilled people that share the exact same passion.

    Feel free to surf to my web-site trade insurance qld (Francesca)

  54. This scenario does not be covered by your main taxi minicab insurance monthly – Holley, coverage where desired,
    and we’re thus ready to offer assistance and cover of this
    type.

  55. I am an engineer I know about Conservation of Mass-Power.
    But What happens when you ask Zach Galifianakis about his …
    (Susan) only focus on the
    mechanical Perform out.

  56. Just curious, on the note of Complete grain…Are you familiar
    with Ezekiel Whole Grain Flourless Bread or Wasa multigrain crackers?

    Also visit my weblog – Rapid Weight Loss: 4 Ways to Accelerate Your
    Fat-Loss – Tammara,

  57. Start discussing the conditions of the agreement using
    the insurer, as soon as you decided on the policy that will cover-all your requirements
    as a insurance cab card (Blake) driver.

  58. You’re so awesome! I don’t believe I have read through
    something like that before. So wonderful to discover another person with a
    few unique thoughts on this subject. Seriously..
    many thanks for starting this up. This site is one thing that is required on the internet, someone with
    some originality!