Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 830 Bytes

File metadata and controls

18 lines (9 loc) · 830 Bytes

Example: Numbers up to 1000, Ending by 7

Write a program that finds all numbers within the range [1 … 1000] that end in 7.

Video: Numbers 1...1000 Ending by 7

Watch the video lesson to learn how to print all numbers in the range [1...1000], ending by 7: https://youtu.be/oFJ72d5GUoo.

Hints and Guidelines

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:

Testing in the Judge System

Test your solution here: https://judge.softuni.org/Contests/Practice/Index/510#1.