when i write a console application such as below
Module Module1
Sub Main()
Dim Product As Integer = 2
While Product <= 1000
Console.Write("{0}", Product)
Product = Product * 2
End While
Console.WriteLine()
Console.WriteLine("The smallest power of two Greater than 1000 is {0}", Product)
End Sub
End Module
when i run it, it only pops up the black command window without giving me the chance to see the results. how can i stop it.
also if i change the name Module1 to anything else, the program says its missing main module, why?
2007-07-17
05:22:01
·
2 answers
·
asked by
Sempeho
2
in
Computers & Internet
➔ Programming & Design