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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -