Write a program that finds all numbers within the range [1 … 1000] that end in 7.
We can solve the problem by combining a
for loop for passing through the numbers from 1 to 1000 and a condition to check if each of the numbers ends in 7. Of course, there are other solutions too, but let's solve the problem using a loop + condition:
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/510#1.