Hirdetés
- Manga lányok és csupa képernyő a Nubia friss kagylótelefonján
- One mobilszolgáltatások
- Samsung Galaxy Z Fold7 - ezt vártuk, de…
- Nem megy az AI az Apple-nek, hullanak a fejek
- Megint kristályozik a Motorola
- iPhone topik
- Szemtelenül olcsó lett a Nubia Fold
- Tényleg nem változik semmit a Samsung Galaxy S26+?
- Milyen hagyományos (nem okos-) telefont vegyek?
- Méretes kamerasziget a Motorola Edge 70 Ultrán
-
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!
- Oneplus Pad lite 128 Gb Új, bontatlan
- Latitude 7440 27% 14" FHD+ IPS i7-1365U 32GB 1TB NVMe magyar vbill ujjlolv gar
- OnePlus 12 256Gb 1 éves, 2027. szeptemberig gaarnciális MAGYAR vásárlás
- Samsung Galaxy S24 256GB, Kártyafüggetlen, 1 Év Garanciával
- G.SKILL Trident Z5 Royal NEO RGB 32GB (2x16GB) DDR5 6000MHz CL28
- Apple iPhone 14 Pro / 128GB / Kártyafüggetlen / 12Hó Garancia / Akku : 87%
- BESZÁMÍTÁS! ASRockB450M R5 5600X 16GB DDR4 512GB SSD STRIX RTX 2070 SUPER 8GB GameMax Aero Mini 700W
- Bomba ár! HP 255 G7 - AMD A4 I 4GB I 128SSD I HDMI I 15,6" HD I Radeon I HDMI I W11 I Cam I Gari!
- BESZÁMÍTÁS! Gigabyte H610M i3 12100F 16GB DDR4 512GB SSD RX 5600XT 6GB Zalman S2 Corsair 650W
- Thinkpad L13 Yoga i5-10210U 16GB 512GB 13.3", Touch gyári magyar világítós bill 360 Gar.: 1év
Állásajánlatok
Cég: BroadBit Hungary Kft.
Város: Budakeszi
Cég: ATW Internet Kft.
Város: Budapest



