All pastes #470438 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-04 08:45 UTC
rendered paste body
private void btnpd_Click(object sender, EventArgs e)
{
   int x;
   bool y;
   y = true;
   x = 1;
   while (x <= editAnswr.Text.Length)
   {
       if (editAnswr.Text.Substring(x - 1, 1) == ".")
       {
          y = false;
       }
       x++;
   }
   if (y == true)
   {
       editAnswr.Text = editAnswr.Text + ".";
   }
}