Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace zajecia01
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Podaj a=");
- string sa = Console.ReadLine();
- Console.Write("Podaj b=");
- string sb = Console.ReadLine();
- // int a = int.Parse (sa);
- int a;
- while (!int.TryParse(sa, out a))
- {
- Console.WriteLine("podaj jeszcze raz");
- sa = Console.ReadLine();
- }
- Console.WriteLine("Wynik a + b =");
- //foreach (var item in args)
- //{
- // Console.WriteLine(item);
- //}
- //for (int i = 0; i < args.Length; i++)
- //{
- // Console.WriteLine(args[i]);
- //}
- //Thread.CurrentThread.CurrentCulture =
- // new CultureInfo("pl-pl");
- // Thread.CurrentThread.CurrentUICulture =
- // new CultureInfo("pl-pl");
- // double a = 1 / 3.0;
- // Console.WriteLine("a = {0, 10:c}", a);
- // Console.WriteLine("a = {0, 10:c}", 123.5);
- // string ret = Console.ReadLine();
- // Console.WriteLine("Wprowadziles: {0}, {1} zl " ret, ret);
- // Console.WriteLine("Hello");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement