Write a program that finds all numbers within the range [1 … 1000] that end in 7.
Watch the video lesson to learn how to print all numbers in the range [1...1000], ending by 7: https://youtu.be/oFJ72d5GUoo.
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.org/Contests/Practice/Index/510#1.