File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
exercises/34-a_aa_aaa_aaaa Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1- Write a program that computes the value of a+aa+aaa+aaaa with a given digit as the value of a.
2- Suppose the following input is supplied to the program:
3- 9
4- Then, the output should be:
5- 11106
1+ # ` 34 ` a aa aaa aaaa
2+
3+ ## 📝 Instructions:
4+
5+ 1 . Write a program ` compute_the_value ` that a sentence and calculates the number of uppercase and lowercase letters.
6+ 1 . Write a program ` compute_the_value ` to calculate the sum of a+aa+aaa+aaaa, where 'a' is a given digit.
7+
8+ ## 📎 Example input:
69
7- Hints:
8- In case of input data being supplied to the question, it should be assumed to be a console input.
10+ ``` py
11+ compute_the_value(" 9" )
12+ ```
13+
14+ ## 📎 Example output:
15+
16+ ``` py
17+ 11106
18+ ```
You can’t perform that action at this time.
0 commit comments