Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- double schet = 5000;
- double prirost = 0;
- int n = Convert.ToInt16(textBox1.Text);
- int m = Convert.ToInt16(textBox2.Text);
- for (int i = 0; i < n; i++)
- {
- schet = schet + (schet / 100 * 2);
- }
- prirost = schet - 5000;
- schet = 5000;
- for (int i = 0; i < m; i++)
- {
- schet = schet + (schet / 100 * 2);
- }
- textBox3.Text = Convert.ToString(prirost);
- textBox4.Text = Convert.ToString(schet);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement