Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp3
  8. {
  9. class Program
  10. {
  11. //enum miesiace
  12. //{
  13. // styczen,
  14. // Luty, marzec , kwiecien , maj , czerwiec, lipiec, sierpien , wrzesien, pazdziernik , listopad, grudzien
  15. //}
  16. //enum FormaZatrudnienia
  17. //{
  18. // umowa_o_prace , umowa_o_dzielo , b2b, umowa_zlecenie
  19. //}
  20.  
  21. static void Main(string[] args)
  22. {
  23. //Console.WriteLine("Podaj imię");
  24. //string imie = Console.ReadLine();
  25.  
  26. //Console.WriteLine("Podaj nazwisko");
  27. //string nazwisko = Console.ReadLine();
  28.  
  29. //Console.WriteLine("Podaj skąd pochodzisz");
  30. //string miasto = Console.ReadLine();
  31.  
  32. //Console.WriteLine("Podaj wiek");
  33. //int wiek = int.Parse(Console.ReadLine());
  34.  
  35.  
  36. //Console.WriteLine("imię: " + imie);
  37. //Console.WriteLine("naziwsko: " + nazwisko);
  38. //Console.WriteLine("wiek: " + wiek);
  39. //Console.WriteLine("miasto: " + miasto);
  40.  
  41. //int proba = 0;
  42. //while (true)
  43. //{
  44. // Console.WriteLine("Wpisz cokolwiek, żeby zobaczyć ilość znaków w tekście. Wpisz \"koniec\" aby wyjść z programu.");
  45. // string line = Console.ReadLine();
  46. // if (line == "koniec")
  47. // {
  48. // break;
  49. // }
  50. // Console.Write("Wpisałeś(aś) " + line.Length + " znaków");
  51. // Console.WriteLine();
  52.  
  53. // proba += 1;
  54.  
  55.  
  56. // if (proba == 1)
  57. // {
  58. // Console.WriteLine("Próbowałeś jeden raz.");
  59. // }
  60. // else
  61. // {
  62. // Console.WriteLine("Próbowałeś " + proba + " razy");
  63. // }
  64.  
  65.  
  66. //miesiace wybrany;
  67.  
  68. //wybrany = miesiace.styczen;
  69.  
  70. //Console.WriteLine("Wybrany miesiac to {0:x}", wybrany);
  71. //Console.ReadKey();
  72.  
  73.  
  74. //FormaZatrudnienia WybranaForma;
  75. //WybranaForma = FormaZatrudnienia.umowa_o_dzielo;
  76. //Console.WriteLine("Podaj imię");
  77. //string imie = Console.ReadLine();
  78. //Console.WriteLine("Podaj imię");
  79. //string nazwisko = Console.ReadLine();
  80. //Console.WriteLine("Podaj miejsce urodzenia");
  81. //string miejsceUrodzenia = Console.ReadLine();
  82. //Console.WriteLine("Podaj rok urodzenia");
  83. //int rokUrodzenia = int.Parse(Console.ReadLine());
  84.  
  85. //Console.WriteLine(imie);
  86. //Console.WriteLine(nazwisko);
  87. //Console.WriteLine(miejsceUrodzenia);
  88. //Console.WriteLine(rokUrodzenia);
  89. //Console.WriteLine("Proponowana umowa: " + WybranaForma);
  90.  
  91. //Console.ReadKey();
  92.  
  93. //double zmiennoprzecinkowa = 123.1234;
  94. //int calkowita;
  95. //string zmienna_tekstowa;
  96. //zmienna_tekstowa = System.Convert.ToString(zmiennoprzecinkowa);
  97. //calkowita = (int)zmiennoprzecinkowa;
  98. //Console.WriteLine(zmiennoprzecinkowa);
  99. //Console.WriteLine(calkowita);
  100. //System.Convert.ToString(zmiennoprzecinkowa);
  101.  
  102.  
  103. //var nowa_tekstowa = zmienna_tekstowa + 10000;
  104. //Console.WriteLine("Nowa tekstowa = " + nowa_tekstowa);
  105.  
  106. //string tekst = "20";
  107.  
  108. //tekst += 10;
  109.  
  110. //Console.WriteLine(tekst);
  111. //int wynik;
  112. //wynik = System.Convert.ToInt32(tekst) - 10;
  113. //Console.WriteLine(wynik);
  114.  
  115. //var nowy_wynik = wynik + 200;
  116.  
  117. //Console.WriteLine(nowy_wynik);
  118.  
  119.  
  120.  
  121. Console.WriteLine("Podaj swoj wzorst");
  122.  
  123. double wzrost;
  124.  
  125. wzrost = double.Parse(Console.ReadLine());
  126.  
  127. int wzrost_calkowite = System.Convert.ToInt32(wzrost);
  128.  
  129. double wzrost_stary = System.Convert.ToDouble(wzrost);
  130.  
  131. double wzrost_nowy = wzrost_stary + 0.10;
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. Console.ReadKey();
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. }
  154.  
  155.  
  156.  
  157.  
  158. }
  159. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement