hi,

I'm really new to c# and I have a minor problem.

I can't do this line right:

Code:
for(flg=line.Length-1;flg>=0;flg--)
	{
     	        char c=line [flg];
		num=num+c;
	}	
Console.WriteLine(num.ToString());
all I get is the ascii value addition.

for ex: string="123"
num should be =6 instead I get num = 150

I tried to do " num=num+(int)c" but it's the same result.