Skip to content

Commit 3b305e6

Browse files
committed
https://github.com/learnpack/learnpack/issues/721
1 parent 0aee93c commit 3b305e6

File tree

60 files changed

+415
-462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+415
-462
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `011` last two digits
2+
3+
## 📝 Instrucciones:
4+
5+
1. Completa la función `last_two_digits()` para que dado un número entero mayor que `9`, imprima sus últimos dos dígitos.
6+
7+
## Ejemplo de entrada:
8+
9+
+ 1234
10+
11+
## Ejemplo de salida:
12+
13+
+ 34
14+
15+
## 💡 Pistas:
16+
17+
+ Si no sabes por donde comenzar este ejercicio, por favor, revisa la teoría en esta lección: https://snakify.org/lessons/integer_float_numbers/
18+
19+
+ También puedes intentar paso a paso con trozos de la teoría: https://snakify.org/lessons/integer_float_numbers/steps/1/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `011` last two digits
2+
3+
## 📝 Instructions:
4+
5+
1. Complete the `last_two_digits()` function. Given an integer greater than `9`, `last_two_digits()` prints its last two digits.
6+
7+
## Example input:
8+
9+
+ 1234
10+
11+
## Example output:
12+
13+
+ 34
14+
15+
## 💡 Hints:
16+
17+
+ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/
18+
19+
+ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/
File renamed without changes.
File renamed without changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# `012` tens digits
2+
3+
## 📝 Instrucciones:
4+
5+
1. Completa la función `tens_digit()` para que dado un número entero, retorne sus decenas.
6+
7+
## Ejemplo de entrada 1:
8+
9+
+ 1234
10+
11+
## Ejemplo de salida 1:
12+
13+
+ 3
14+
15+
## Ejemplo de entrada 2:
16+
17+
+ 179
18+
19+
## Ejemplo de salida 2:
20+
21+
+ 7
22+
23+
## 💡 Pistas:
24+
25+
+ Si no sabes por donde comenzar este ejercicio, por favor, revisa la teoría en esta lección: https://snakify.org/lessons/integer_float_numbers/
26+
27+
+ También puedes intentar paso a paso con trozos de la teoría: https://snakify.org/lessons/integer_float_numbers/steps/1/

exercises/012-tens_digit/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# `012` tens digits
2+
3+
## 📝 Instructions:
4+
5+
1. Complete the `tens_digit()` function. Given an integer, `tens_digit()` returns its tens digit.
6+
7+
## Example input 1:
8+
9+
+ 1234
10+
11+
## Example output 1:
12+
13+
+ 3
14+
15+
## Example input 2:
16+
17+
+ 179
18+
19+
## Example output 2:
20+
21+
+ 7
22+
23+
## 💡 Hints:
24+
25+
+ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/
26+
27+
+ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `013` sum of digits
2+
3+
## 📝 Instrucciones:
4+
5+
1. Completa la función `digits_sum()` para que dado un número de tres dígitos, retorne la suma de sus dígitos.
6+
7+
## Ejemplo de entrada:
8+
9+
+ 123
10+
11+
## Ejemplo de salida:
12+
13+
+ 6
14+
15+
## 💡 Pistas:
16+
17+
+ Si no sabes por donde comenzar este ejercicio, por favor, revisa la teoría en esta lección: https://snakify.org/lessons/integer_float_numbers/
18+
19+
+ También puedes intentar paso a paso con trozos de la teoría: https://snakify.org/lessons/integer_float_numbers/steps/1/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `013` sum of digits
2+
3+
## 📝 Instructions:
4+
5+
1. Complete the `digits_sum()` function. Given a three-digit number, `digits_sum()` finds the sum of its digits.
6+
7+
## Example input:
8+
9+
+ 123
10+
11+
## Example output:
12+
13+
+ 6
14+
15+
## 💡 Hints:
16+
17+
+ If you don't know how to start solving this assignment, please, review a theory for this lesson: https://snakify.org/lessons/integer_float_numbers/
18+
19+
+ You may also try step-by-step theory chunks: https://snakify.org/lessons/integer_float_numbers/steps/1/

0 commit comments

Comments
 (0)