A community member has associated this post with a similar question:
where is the problem in function?

Only moderators can edit this content.

where is the Mistake in function?

abdullah 1 Reputation point
2022-06-02T15:26:29.56+00:00

public double Sasd(double s,double y)
{if (radioButton1.Checked == true)
{
double e = Math.Pow(s, y) / (s * y);

            return e;




        }

        else (radioButton2.Checked == true)


            double o = s * y;

            return o;





    }
    private void button1_Click(object sender, EventArgs e)
    {
        double s = Convert.ToDouble(textBox1.Text);

        double y = Convert.ToDouble(textBox2.Text);
        label3.Text = Sasd(s, y).ToString();


    }
}

}

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,292 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,861 Reputation points
    2022-06-02T16:06:41.993+00:00

    Hi @abdullah ,

    Thank you for asking this question on the Microsoft Q&A Platform.

    Please don't post the same questions in multiple thread.

    Refer the answer here ==> https://learn.microsoft.com/en-us/answers/questions/874673/where-is-the-problem-in-function.html?childToView=874658#answer-874658

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    0 comments No comments