C# Dört İşlem
C# Basit Dört İşlem Programı
[csharp]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 Dort_islem
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
double sayi1=0, sayi2=0, sonuc=0;
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "+ (Topla)")
{
sayi1=Convert.ToInt32(textBox1.Text);
sayi2= Convert.ToInt32(textBox2.Text);
sonuc = sayi1 + sayi2;
textBox3.Text=(sonuc.ToString());
}
if (comboBox1.Text == "- (Çıkar)")
{
sayi1 = Convert.ToInt32(textBox1.Text);
sayi2 = Convert.ToInt32(textBox2.Text);
sonuc = sayi1 – sayi2;
textBox3.Text = (sonuc.ToString());
}
if (comboBox1.Text == "* (Çarp)")
{
sayi1 = Convert.ToInt32(textBox1.Text);
sayi2 = Convert.ToInt32(textBox2.Text);
sonuc = sayi1 * sayi2;
textBox3.Text = (sonuc.ToString());
}
if (comboBox1.Text == "/ (Böl)")
{
sayi1 = Convert.ToInt32(textBox1.Text);
sayi2 = Convert.ToInt32(textBox2.Text);
sonuc = sayi1 / sayi2;
textBox3.Text = (sonuc.ToString());
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("www.technoprogram.com");
}
}
}
[/csharp]
Dosya boyutu : 51 Kb
Virustotal Sonuçları : 2 / 54 McAfee bulmuş fakat içinde zararlı bir dosya bulunmamaktadır.
Rar şifresi : www.technoprogram.com
C# Dört İşlem Projesini İndir
İndirmek için tıklayın