!
gcoo!!Exykgvyukhhytocfplanationufvhyg:
Answer: 50
Explanation: let amit's current age = a and armaan's current age be b.
(a-5) = 3* (b-5)
i.e. a= 3b-10 -(i)
10 years later,
(a+10) = 2(b+10)
i.e. a=2b+10 -(ii)
From eqn (i) and (ii),
b=20,
and a=50
Answer:
The answer is: c. Adding external CSS is a good practice for various reasons, including code organization.
Explanation:
External CSS improves maintainability in code.
Internal CSS has precedence over external CSS, it means that internal will overwrite external CSS, but abuse of internal CSS often makes hard to maintain HTML code on a large website.
Furthermore, it is much easier to modify one CSS(external) file that can impact multiple web pages than go into every HTML page and modify your styles per page. Many sites have hundred or more pages, go through each one wouldn't be productive.
Answer:
speed = float(input("Enter the speed: "))
hours = int(input("Enter the hours: "))
distance = 0
for i in range(hours):
distance += speed * 1
print("The distance after " + str(i+1) + ". hour(s): " + str(distance))
Explanation:
*The code is in Python.
Ask the user to enter the speed and the hours
Initialize the distance as 0
Create a for loop that iterates hours times. Inside the loop, calculate the cumulative distance traveled at the end of each hour and print it (Note that the distance = speed x hour)