Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class NumbersInInterval
- {
- static void Main()
- {
- Console.Write("Start= ");
- int a = int.Parse(Console.ReadLine());
- Console.Write("Stop= ");
- int b = int.Parse(Console.ReadLine());
- for (int i = a; i <= b; i++)
- {
- if (i % 5 == 0)
- {
- Console.Write(i);
- if (i < b - 2)
- {
- Console.Write(",");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement