using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int web = Console.Read();
Console.WriteLine(web);
Console.Read();
}
}
}
the above code working as strange i could not understand..
if give input 12 it prints the output 49, why it gives wrong integer..(new to dotnet)..
Question:-
1) is console.Read() function only read a single character?
2) in the above program it displays ascII value of single character why?
Thanks in advance