#Quiz5

Hey there!

In this case, we had to make a program that can read a word forward and backward, in order to demonstrate if a word provided by the user is a palindrome or not. Remeber that a palindrome needs to have the same order of letters from the begining to the end and viceversa. For exaple: RACECAR.

So first of all, he need to include in our library rhe name of string in order to make this function to read a word forward and backward. Then, using a n if else loop we can write our code in order to see if a word provided by the user is a palindrome or not.

Check my code written in Atom as an editor:

And here is the program compiled using Cygwin as terminal:

Check my code taken by GitHub:

https://gist.github.com/DiegoNaterasPonce/2149b059d06bac902323

And for the second problem, we had to take from a list of numbers provided by the user, those which are divisible by three, so in this case, we ask the user the amount of numbers to sum in order to make a list and then ask again for more numbers from the list or amount of numbers that the user want to sum and for that list of numbers to sum, the program ONLY takes that numbers which are divisible by three and then sum all of those numbers giving as an answer the addittion from the list of numbers provided by the user. I KNOW, I SOUND WITH A LOT OF TROUBLES, BUT I STILL LOVING ME LIKE I AM.

So here is the code from Atom:

And here is the program compiled in Cygwin:

Check my code taken by GitHub:

https://gist.github.com/DiegoNaterasPonce/8b10c51506af75c22a24

CC BY-SA 4.0 #Quiz5 by Diego Nateras Ponce is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.