![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Jul 2004
Location: Location
Posts: 138
Rep Power: 5
![]() |
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());
}
} |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
Umm...
using system;
class test() {
public static void main() {
Console.WriteLine((50 * 30 * 78).ToString());
}
}
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|