Другие языки программирования и технологии

простейшая программа которая будет выводить ответ функций умножения в C#

Помогите пожалуйста! Мне нужна простейшая программа которая будет выводить ответ заданного уравнения (или простого примерчика по типу X= 5*10) в textbox при нажатии кнопки.
З. Ы. Уравнение заранее записанное в код проги, нужно что бы просто при нажатии выводился ответ, и да форма состоит из текстБокса и кнопки....
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 WindowsFormsApplication5
{
public partial class Form1 : Form
{
private System.ComponentModel.IContainer components = null;

protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(23, 40);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 22);
this.textBox1.TabIndex = 1;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 262);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
//this.//Name = "Form1"; // Коментарии уберете.
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();

}

private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;

public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = (5 * 10).ToString();
}
}
static class Program
{

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Женя Круг
Женя Круг
1 732
Лучший ответ
Console.WriteLine(5*10);
Максим Локтев
Максим Локтев
72 269
я могу написать код, только ведь это целый проект получиться, а это не один файл...
Сергей Чагай
Сергей Чагай
34 523

Похожие вопросы