hello im genjiro from indonesia...
im talking the mehtod for c# console...
the my code building this..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Boolean loop = true;
do{
try
{
Console.WriteLine("Masukkan Nilai 1 :");
int x = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Masukkan Nilai 2 :");
int z = Convert.ToInt32(Console.ReadLine());
int hasil = x * z;
Console.WriteLine("\nhasil {0}*{1}={2}",x,z,hasil);
}
catch (DivideByZeroException divideZeroExp)
{
Console.WriteLine("Notice" + divideZeroExp.Message);
Console.WriteLine("Operasi Gagal Coba lagi...");
}
catch (FormatException formExp)
{
Console.WriteLine("Notice" + formExp.Message);
Console.WriteLine("Format Masukan salah Coba lagi....");
}
}
while(loop);
}
}
}
ok this my question is..
how to change the operation to multi function operation likes this div,mul,add dll...
ok thanks im wait the answer...
Jiro...