Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp5
- {
- class Program
- {
- public static void kalkulator(string x)
- {
- x = "(" + x + ")";
- double wyn = double.Parse(x);
- Console.WriteLine(wyn);
- }
- static void Main(string[] args)
- {
- string rownanie;
- rownanie = Console.ReadLine();
- kalkulator(rownanie);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement