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