Answer:
28 years
Explanation:
Let's represent present age of Chris and Dom as C and D respectively. Then since ratio of present age of Chris and Dom is 3:4. Therefore,
...(1)
Now, it is given that in 7 years their age ratio will become 4:5. Therefore,


Using value of C from equation(1),


Thus, present age of Dom is 28 years.
Answer:
The method in python is as follows:
class myClass:
def printRange(min,max):
for i in range(min, max+1):
print("{"+str(i)+"} ", end = '')
Explanation:
This line declares the class
class myClass:
This line defines the method
def printRange(min,max):
This line iterates from min to max
for i in range(min, max+1):
This line prints the output in its required format
print("{"+str(i)+"} ", end = '')
D cause you will need to keep up with data also