Professional Documents
Culture Documents
C# 11
C# 11
C# 11
11
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;
using static System.Net.Mime.MediaTypeNames;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace EXP11
{
public partial class Form1 : Form
{
string rs="";
public Form1()
{
InitializeComponent();
}
rs = label2.Text;
DataTable dt = new DataTable();
try
{
Experiment No. 11
{
rs+="00";
label2.Text = rs.ToString();
}
{
try
{
int a = rs.Length - 1;
if (rs.Length != 0 && rs[a] != '%' && rs[a] != '+' && rs[a] != '-' && rs[a] != '*' &&
rs[a] != '/')
{
rs += "-";
label2.Text = rs.ToString();
}
}
catch (Exception ex) { }
}
int a = rs.Length - 1;
if (rs.Length != 0 && rs[a] != '%' && rs[a] != '+' && rs[a] != '-' && rs[a] != '*' &&
rs[a] != '/')
{
rs += "/";
label2.Text = rs.ToString();
}
}
catch (Exception ex) { }
}
}
catch (Exception ex) { }
}