Reading the Input Data

The method to solve this task is no different than the previous ones, so we start declaring and initializing the necessary variables:

In the condition is said, that the years of Ivancho are 18, so when declaring the variable years we assign it an initial value of 18. We read the other variables from the console.

results matching ""

    No results matching ""