Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. {
  2. double schet = 5000;
  3. double prirost = 0;
  4. int n = Convert.ToInt16(textBox1.Text);
  5. int m = Convert.ToInt16(textBox2.Text);
  6. for (int i = 0; i < n; i++)
  7. {
  8. schet = schet + (schet / 100 * 2);
  9. }
  10. prirost = schet - 5000;
  11. schet = 5000;
  12. for (int i = 0; i < m; i++)
  13. {
  14. schet = schet + (schet / 100 * 2);
  15. }
  16. textBox3.Text = Convert.ToString(prirost);
  17. textBox4.Text = Convert.ToString(schet);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement