Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             var income = decimal.Parse(textBox1.Text);
  4.            
  5.             if ( income > 0 && income < 9999 )
  6.             {
  7.                 income = income + 77;
  8.                 customLabel.Text = income.ToString();
  9.             }
  10.             else if (income >= 10000 && income <= 99999)
  11.             {
  12.                 income = income * 3;
  13.                 customLabel.Text = income.ToString();
  14.             }
  15.            
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement