Advertisement
Guest User

zaj1

a guest
Sep 20th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8.  
  9. namespace zajecia01
  10. {
  11. class Program
  12. {
  13. static void Main(string[] args)
  14. {
  15.  
  16. Console.Write("Podaj a=");
  17. string sa = Console.ReadLine();
  18. Console.Write("Podaj b=");
  19. string sb = Console.ReadLine();
  20.  
  21. // int a = int.Parse (sa);
  22.  
  23. int a;
  24.  
  25. while (!int.TryParse(sa, out a))
  26. {
  27. Console.WriteLine("podaj jeszcze raz");
  28. sa = Console.ReadLine();
  29.  
  30. }
  31.  
  32. Console.WriteLine("Wynik a + b =");
  33.  
  34. //foreach (var item in args)
  35. //{
  36. // Console.WriteLine(item);
  37. //}
  38. //for (int i = 0; i < args.Length; i++)
  39. //{
  40. // Console.WriteLine(args[i]);
  41. //}
  42.  
  43.  
  44. //Thread.CurrentThread.CurrentCulture =
  45. // new CultureInfo("pl-pl");
  46. // Thread.CurrentThread.CurrentUICulture =
  47. // new CultureInfo("pl-pl");
  48. // double a = 1 / 3.0;
  49. // Console.WriteLine("a = {0, 10:c}", a);
  50. // Console.WriteLine("a = {0, 10:c}", 123.5);
  51.  
  52.  
  53. // string ret = Console.ReadLine();
  54. // Console.WriteLine("Wprowadziles: {0}, {1} zl " ret, ret);
  55. // Console.WriteLine("Hello");
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement