Homework 8: Yo soy 196

--Originally published at Let's CODE

We are going to calculate the quantity of Lychrel numbers (natural numbers that doesn’t convert on palindromes after a serie of aditions, for example, 196 is a Lychrel number), natural and made palindromes that are present in a range of integer numbers given by the user. If we want to convert a non-natural palindrome to … Continue reading Homework 8: Yo soy 196

Homework 7: Lists

--Originally published at Let's CODE

This program will ask the user for 10 numbers and will be stored in a vector. Then, the user will be able to see the total of the sum, average and standard deviation of those numbers. A vector is very easy to use, you have to asign a type to the vector and give it … Continue reading Homework 7: Lists

Homework 6: Factorial Calculator

--Originally published at Let's CODE

Let’s make a factorial calculator! First of all, we have to know what a factorial number is. If you see a number that is accompanied by an exclamation sign, you’re seing a factorial number, that consists in a number multiplied by all the precedent integer numbers until reach one. For example, 6!= 65432*1 = 720. … Continue reading Homework 6: Factorial Calculator

Homework 4: Sum of Numbers

--Originally published at Let's CODE

This program sums a range of consecutive numbers, between a given range by the user. It’s very simple to make, I will show you step by step how to make it. As usual, you need to call the necessary libraries and open the main function. We have to declare two variables for the bounds, one … Continue reading Homework 4: Sum of Numbers