Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Read XML nodes into Data Dictionary
BRHOOM 111
Array Foreach with sum
codeWall
hello,world
p1
SingleDelegate
Fórum ➡ Example of a "crippled" extension method ♦
enum flag comparison
Derived static
Please log in to post a comment.