- Samsung Galaxy S26 - szeret, nem szeret
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Huawei Watch GT Runner 2 – óra a futóra?
- Samsung Galaxy A56 - megbízható középszerűség
- Xiaomi 17 Ultra - jó az optikája
- Google Pixel topik
- Samsung Galaxy Watch (Tizen és Wear OS) ingyenes számlapok, kupon kódok
- Xiaomi 15T Pro - a téma nincs lezárva
- iPhone topik
- Itt a Galaxy S26 széria: az Ultra fejlődött, a másik kettő alig
-
Mobilarena

Új hozzászólás Aktív témák
-
klambi
addikt
na jó
public partial class Form1 : Form
{
bool osszead = false;
bool kivonas = false;
bool szorzas = false;
bool osztas = false;
public Form1()
{
InitializeComponent();
}private void Form1_Load(object sender, EventArgs e)
{}
private void button9_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '1';
}private void button10_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '2';
}private void button11_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '3';
}private void button14_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '4';
}private void button13_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '5';
}private void button12_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '6';
}private void button17_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '7';
}private void button16_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '8';
}private void button15_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '9';
}private void button18_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + '0';
}private void button8_Click(object sender, EventArgs e)
{
if (textBox1.Text.Contains('.'))
{
return;
}
else
{
textBox1.Text = textBox1.Text + '.';
}
}private void button19_Click(object sender, EventArgs e)
{
if (textBox1.Text.Contains('-'))
{
textBox1.Text = textBox1.Text.Remove(0, 1);
}
else
{
textBox1.Text = "-" + textBox1.Text;
}
}private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
return;
}
else
{
osszead = true;
textBox1.Tag = textBox1.Text;
textBox1.Text = "";
}
}private void button5_Click(object sender, EventArgs e)
{
if (osszead)
{
decimal dec = Convert.ToDecimal(textBox1.Tag) + Convert.ToDecimal(textBox1.Text);
textBox1.Text = dec.ToString();}
if (szorzas)
{
decimal dec = Convert.ToDecimal(textBox1.Tag) * Convert.ToDecimal(textBox1.Text);
textBox1.Text = dec.ToString();}
if (osztas)
{
decimal dec = Convert.ToDecimal(textBox1.Tag) / Convert.ToDecimal(textBox1.Text);
textBox1.Text = dec.ToString();}
if (kivonas)
{
decimal dec = Convert.ToDecimal(textBox1.Tag) - Convert.ToDecimal(textBox1.Text);
textBox1.Text = dec.ToString();}
}private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
return;
}
else
{
kivonas = true;
textBox1.Tag = textBox1.Text;
textBox1.Text = "";
}
}private void button3_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
return;
}
else
{
szorzas = true;
textBox1.Tag = textBox1.Text;
textBox1.Text = "";
}
}private void button4_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
return;
}
else
{
osztas = true;
textBox1.Tag = textBox1.Text;
textBox1.Text = "";
}
}private void button6_Click(object sender, EventArgs e)
{
osztas = osszead = kivonas = szorzas = false;
textBox1.Text = "";
textBox1.Tag = "";
}
}
}simán mennek a dolgok, de a 0 val való osztással szintaktikailag volt gondom...ki is vettem belőle, pontosan hogy lenne az?
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
- Samsung Galaxy S26 - szeret, nem szeret
- Csillagfelhő áztatná el Elon Musk űrkarneválját
- Battlefield 6
- LEGO klub
- PlayStation 5
- Telekom otthoni szolgáltatások (TV, internet, telefon)
- XPEnology
- Autós topik látogatók beszélgetős, offolós topikja
- Mibe tegyem a megtakarításaimat?
- Witcher topik
- További aktív témák...
- 200 x 60 cm Ikea Lagkapten / Alex asztal
- i5 14400F/MSI RTX 5070 GAMING TRIO OC/Corsair 32GB DDR5 6000Mhz/Samsung 980 Pro 1TB/Be quiet650WGold
- Tamron 24-70mm f2.8 Di VC USD G2 (Nikon F) eladó!
- Steelseries Arctis 9X Wireless for xbox + Xbox dongle for PC
- ASUS ROG STRIX GeForce RTX 4090 WHITE OC EDITION 24GB - Alza garancia 2027.03.19 - BESZÁMÍTOK!
- Építőipari csomag (vakológépek, targoncák, építőipari eszközök és kellékek, egyéb, sok más)
- AKCIÓ! Gigabyte B760M i3 12100F 16GB DDR4 512GB SSD RTX 2060 Super 8GB ADATA XPG Valor Air 600W
- 164 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4090
- BESZÁMÍTÁS! Részletfizetés 0% THM ÚJ GIGABYTE A16 3VH 16" notebook R7 260 16GB RTX 5060 3 év 27%
- ÓRIÁSI BOMBA AKCIÓK! PSN, STEAM, UBISOFT CONNECT, EA APP, XBOX EREDETI KULCSOK 100% GARANCIA
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest


