SHARE
TWEET

kalkulator?

a guest Oct 21st, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp5
  8. {
  9.     class Program
  10.     {
  11.         public static void kalkulator(string x)
  12.         {
  13.             x = "(" + x + ")";
  14.             double wyn = double.Parse(x);
  15.             Console.WriteLine(wyn);
  16.         }
  17.         static void Main(string[] args)
  18.         {
  19.             string rownanie;
  20.             rownanie = Console.ReadLine();
  21.             kalkulator(rownanie);
  22.  
  23.         }
  24.  
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top