Im trying to figure out what I am doing wrong. I want the top line of code to ask a question and the if statement to check for string or a number that is not in between 1-12.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Class1
{
public void checknumber()
{
string result;
int input = result;
Console.WriteLine("Please enter the month in numerical value (1- 12)");
Console.Write(result);
if (input < 1 && input > 12)
{
Console.WriteLine("Please close the program, run the program again, and input number between 1-12");
}
}
}
}