Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Numbers in Interval Dividable by Given Number
using System; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("Enter start number: "); int start = int.Parse(Console.ReadLine()); Console.WriteLine("Enter end number: "); int end = int.Parse(Console.ReadLine()); int counter = 0; for (int i = start; i <= end; i++) { if (i % 5 == 0) { counter++; } } Console.WriteLine(counter); } } }
run
|
edit
|
history
|
help
0
MockTest
learning1
ConcurrentDictionary<T>
Math 5.85a
where index
asdfghjiu
Making Anagrams
Bridge Design Patern
asxsdf
float to short cast overflow