Fix the following code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace @if
{
public partial class Form1 : Form
{
int secretNumber = 9;
int anyNumber;
public Form1()
{
InitializeComponent();
}
private void btnGuess_Click(object sender, EventArgs e)
{
anyNumber = Convert.ToInt32(textBoxInput.Text);
if (anyNumber < secretNumber)
lblOutput.Text = "Number is low";
if (anyNumber > secretNumber)
lblOutput.Text = "Number is high";
else
lblOutput.Text = "Number is correct";
}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment