1-) C# - DongulerPratik
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 DongulerPratik
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
/*int toplam = 0;// 1 den 10 a kadar sayıların toplamını verir.
for (int i = 1; i <= 10; i++)
{
toplam = toplam + i;
}
label1.Text = toplam.ToString();*/
int toplam = 0;
for (int i = 2; i <= 10; i = i + 2)
{
toplam = toplam + i;
}
label2.Text = toplam.ToString();
}
}
}
