Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Show Off Your Open Source Projects (http://www.programmingforums.org/forum52.html)
-   -   simple multiplication code (http://www.programmingforums.org/showthread.php?t=130)

bulio Jul 9th, 2004 1:06 PM

level: Beginner/newbie

Notes: Simple code that will print out the results of 3 numbers. the * can be change to add, divide etc.

Made by: Me

:

using System;
class Test
{
  public static int Multiply(int a, int b, int c)
  {
      return a * b * c;
      }
  public static void Display(string yy)
  {
      Console.WriteLine(yy);
      }
  public static void Main()
  {
      Display(Multiply(50,30,78).ToString());
      }
}


tempest Nov 12th, 2004 10:45 PM

Umm...

:

using system;
class test() {
  public static void main() {
    Console.WriteLine((50 * 30 * 78).ToString());
  }
}



All times are GMT -5. The time now is 2:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC