A Basic C# multiplier
Posted by Gizmosis350k
Last Updated: March 25, 2012
  535

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ch03Ex4
{
    class Program
    {
        static void Main(string[] args)
        {
            double digit1, digit2, digit3, digit4;
            string userName;
            Console.WriteLine ("Enter your name:\a");
            userName = Console.ReadLine();
            Console.WriteLine ("Welcome {0}!", userName);
            Console.WriteLine ("Enter 4 numbers:");
            digit1 = Convert.ToInt32(Console.ReadLine());
            digit2 = Convert.ToInt32(Console.ReadLine());
            digit3 = Convert.ToInt32(Console.ReadLine());
            digit4 = Convert.ToInt32(Console.ReadLine());
            // Even put some beeps in to look cool :D
            Console.WriteLine("The product of all your numbers is {0}.\a", digit1 * digit2 * digit3 * digit4);
            Console.ReadKey();
        }
    }
}



u zimmi @_@
   
  
 
 
   

 
 
Glad to see ur enjoying ur C# Adventure!!!!!!! Keep up the good work...
 
You doing well