Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Evaluating a Mathematical expression in a string in C#
//Sample program to show how mathematical expressions can be evaluated in C# using System; using System.Data; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here double result = Convert.ToDouble(new DataTable().Compute("(3+3)*2+1", null)); Console.WriteLine("Hello, world!"+result.ToString()); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Create Sealed Class Object & call sealed method with non sealed class
Main3
zmeika
FREE V-BUCKS GENERATOR NO HUMAN VERIFICATION 2022 [zT4]
Generic Coveriant
araray
Jahongirochilov270@gmail.com
animal
using @ to prefix a string
EFC AZAAAA
Please log in to post a comment.