Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _11.Interval
- {
- class Interval
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int counter = 0;
- for (int i = n + 1; i <= m; i++)
- {
- if (i % 5 == 0)
- {
- counter++;
- }
- }
- Console.WriteLine(counter);
- //int N = int.Parse(Console.ReadLine());
- //int M = int.Parse(Console.ReadLine());
- //Console.WriteLine((M - N + N % 5 - 1) / 5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement