Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is what I have so far. I am lost as to what else I need? public partial cla

ID: 441273 • Letter: T

Question

This is what I have so far. I am lost as to what else I need? public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string str; str = TextBox1.Text; // "10" int num1; num1 = Convert.ToInt32( str) ; // 10 /* * if ( num1 % 2 == 0 ) * * { Label1.Text = Convert.ToString( num1 ) + " is an even number."; } * * else * * { Label1.Text = Convert.ToString( num1 ) + " is an odd number."; } * * */ } }

Explanation / Answer

if ( num1 % 2 == 0 ) then the number is even if ( num1 % 2 != 0 ) then the number is odd

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote