|
||
|
|
#1 (permalink) | |
|
Forum Expert
|
Code:
using System;
using System.Collections.Generic;
using System.Text;
namespace CreateFileLoop
{
classProgram
{
staticvoid Main(string[] args)
{
for (int i = 1; i <= 5; i++)
{
Console.WriteLine(i);
}
}
}
}
Output: Code:
1 2 3 4 5 Help! -Storm
__________________
Quote:
|
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
just add a Console.ReadLine()
Code:
using System;
using System.Collections.Generic;
using System.Text;
namespace CreateFileLoop
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 5; i++)
{
Console.WriteLine(i);
}
Console.ReadLine();
}
}
}
Last edited by mordero; 07-14-2006 at 07:23 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|