namespace WinFormsApp2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Random random = new Random(); private void button1_Click(object sender, EventArgs e) { int uretilen, i; listBox1.Items.Clear(); for (i = 0; i < 10; i++) { uretilen = random.Next(0, 360); listBox1.Items.Add(uretilen); } } private void radioButton5_CheckedChanged(object sender, EventArgs e) { if (radioButton5.Checked) { listBox2.Items.Clear(); for (int a = 0; a < listBox1.Items.Count; a++) { if (listBox1.Items[a] is int number) { listBox2.Items.Add(number * number); } } } } private void radioButton4_CheckedChanged(object sender, EventArgs e) { if (radioButton4.Checked) { listBox2.Items.Clear(); for (int a = 0; a < listBox1.Items.Count; a++) { if (listBox1.Items[a] is int number) { double sin = Math.Sin(number * Math.PI / 1); listBox2.Items.Add(sin); } } } } } }