Skip to content

Commit 30f755f

Browse files
Descripion_9
1 parent 20f4cfd commit 30f755f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,22 @@ def prog_4():
226226
prog_4()
227227
```
228228
* * *
229+
230+
## Question_9: ##
231+
**Description:**
232+
233+
Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and\
234+
then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed\ in a comma separated sequence.\\
235+
Example:
236+
0100,0011,1010,1001\
237+
Then the output should be:\
238+
1010\
239+
Notes: Assume the data is input by console.\
240+
241+
**Hints:**
242+
In case of input data being supplied to the question, it should be assumed to be a console input.
243+
244+
```python
245+
def prog_5():
246+
```
247+
* * *

Solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def prog_3():
179179

180180

181181

182-
# ========================= Question_7: ===========================================
182+
# ========================= Question_8: ===========================================
183183
# Write a program that accepts a sequence of whitespace separated words as input and prints the words
184184
# after removing all duplicate words and sorting them alphanumerically.
185185
# Suppose the following input is supplied to the program:

0 commit comments

Comments
 (0)