[Help] Simple question c#
I can't get this simple program to output the total, please tell me what I'm doing wrong. Much appreciated.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace test
{
class Program
{
static double CalcTotal(double num1, double num2)
{
double subtotal = num1 + num2;
return subtotal;
}
static void Main(string[] args)
{
double subtotal = CalcTotal(9.3,4.3);
Console.WriteLine("total:", subtotal);
}
}
}
