Question
Which of the following is the syntax for an `if`
statement checking if a variable `NUM` is numerically equal to 5?Solution
`if [ $NUM -eq 5 ]; then ... fi`
Ten years earlier, the ages of Aarav and Kabir were in the ratio 3:4. Six years later from that point (i.e., 4 years ago), their ages were in the ratio ...
- The present age ratio of A to B is 4:5. After 8 years, the ratio of Aβs age to Pβs age will be 8:13. Additionally, the total of Aβs, Bβs, and Pβs...
A school has 8 teachers and 4 administrators. The average age of the teachers is 40 years, and the average age of the administrators is 55 years. After ...
The present age ratio between 'A' and 'B' is 6:4 respectively. If the sum of 'A's age 3 years ago and 'B's age 8 years from now is 50 years, what is the...
- At present, the total of ages of Arjun and Ravi is 60 years. Two years ago, the ratio of their ages was 3:4. What is the current age of Ravi?
Three individuals β Ria, Tia, and Mia β are discussing their ages. The age of Ria 8 years ago was one-third of Tiaβs age 4 years from now. The tot...
When 19 years is subtracted from the present age of A and the obtained result is divided by 5, then the present age of his nephew is obtained. If the pr...
Eight years ago, Pawan's age was 25% greater than Bheem's age at that time. If their combined current ages total 70 years, determine Pawan's current age.
A boy’s age is 125% of what it was 8 years ago, but 75% of what it will be after 8 years. What is his present age?
- Five years ago, the ratio of age of 'A' to 'B' was 4:5. After ten years, the ratio of age of 'A' to 'B' will be 7:8. Find the current age of 'C' who is 6 y...