this is my simple C# console app in this i will get input from user i have postal code variable in which i want to take input as integer but when i input integer it shows error. another approch is that console.readline take both int and string as input or not ??
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string firstname;
string lastname;
string birthdate;
string addressline1;
string adressline2;
string city;
string stateorprovince;
int ziporpostalcode;
string country;
ziporpostalcode =int.Parse(Console.ReadLine());
}
}
}