How to list numbers in C# -
i trying list these numbers like:
1. 114 2. 115 3. 116
etc.. code have right :
using system; using system.collections.generic; using system.linq; using system.text; namespace consoleapplication1 { class program { static void main(string[] args) { int num = 0; int count = 114; while (count < 146) { console.writeline(num + "." + count); console.read(); count++; } } } }
the output 0=114 , nothing after.. please help
the console.read()
blocks loop, should be:
static void main(string[] args) { int num = 0; int count = 114; while (count < 146) { console.writeline(num + "." + count); count++; } console.read(); }
Comments
Post a Comment