Results 1 to 2 of 2

Thread: [solved for now] c# to vb.net conversion

Threaded View

  1. #1

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    [solved for now] c# to vb.net conversion

    Code:
    using System;
    
    namespace ConsoleApplication4
    {
    	/// <summary>
    	/// Summary description for Class1.
    	/// </summary>
    	class Class1
    	{
    		/// <summary>
    		/// The main entry point for the application.
    		/// </summary>
    		[STAThread]
    		static void Main(string[] args)
    		{
    			//
    			// TODO: Add code to start application here
    			//
    			string s="BILLGATES";
    			int num=0;
    			for(int i=0;i<s.Length;i++)
    			{
    				num+=(int)s[i];
    			}
    			num+=3; //William Henry III
    			Console.WriteLine(num);
    		}
    	}
    }
    thanx in advance...
    Last edited by brown monkey; Jun 17th, 2004 at 02:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width