Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleInputOutput
- {
- public static class Intervals
- {
- public static void Main()
- {
- long start = long.Parse(Console.ReadLine());
- long end = long.Parse(Console.ReadLine());
- int count = 0;
- for (long i = start; i <= end; i++)
- {
- if (i%5==0)
- {
- count++;
- }
- }
- Console.WriteLine(count);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement