S
sahel
Hi;
I wrote a program that I want to put a number in char (I mean : char
s = '8'![Wink ;) ;)](/styles/default/custom/smilies/wink.gif)
7 than put the number I put that at char s to int ;
But it does not work correctly ;
I mean it doesn’t show 8 ;
using System;
class Program
{
static void Main(string[] args)
{
char s = '8';
int f =s;
Console.WriteLine(f);
}
}
thanks . . .
I wrote a program that I want to put a number in char (I mean : char
s = '8'
![Wink ;) ;)](/styles/default/custom/smilies/wink.gif)
7 than put the number I put that at char s to int ;
But it does not work correctly ;
I mean it doesn’t show 8 ;
using System;
class Program
{
static void Main(string[] args)
{
char s = '8';
int f =s;
Console.WriteLine(f);
}
}
thanks . . .