2
I made a simple code in C# that receives a real number but only recognizes "," as a decimal separator. When I make you receive numbers that use "." as separator it ignores the point. For example, if sending "2.0", it receives "20". Here is the code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
string r;
double raio;
r = Console.ReadLine();
raio = double.Parse(r);
Console.WriteLine(raio);
}
}
}
I took the test here and he called me back
2.0
. Your code seems to be a little fuzzy too.– gato