Document 4
Document 4
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BasicCalculatorReyes
public FrmBasicCalculator()
InitializeComponent();
};
comboBox1.Items.AddRange(List);
try
float result = 0;
if (operation == "+")
if (num2 != 0)
return;
else
return;
label3.Text = result.ToString();
catch (FormatException)
} }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CalculatorPrivateAssemblyReyes
return a + b;
return a - b;
return a * b;
if (b == 0)
RESULT: