Facebook
From Insensitive Cockroach, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 181
  1. int liczba = int.Parse(txtliczba.Text);
  2.             int suma = 0;
  3.  
  4.             for (int i = 0; i < liczba; i++)
  5.             {
  6.                 suma = suma + i;
  7.             }
  8.             MessageBox.Show("Suma wynosi " + suma);