Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. //קלט
  2. //פלט אתמול
  3. // int day2;
  4. // Console.WriteLine("קלוט תאריך , יום וחודש");
  5. // int year = int.Parse(Console.ReadLine());
  6. // int day = int.Parse(Console.ReadLine());
  7. // int month = int.Parse(Console.ReadLine());
  8. // day2 = day - 1;
  9. // Console.WriteLine(day2+"."+month+"."+year);
  10.  
  11. // קלט: סיסמא
  12. // פלט: מספר מוצפן
  13. // int num, a, b, c, d;
  14. // Console.WriteLine("הקלד סיסמא בת 4 ספרות");
  15. // num = int.Parse(Console.ReadLine());
  16.  
  17. // a = num / 1000;
  18. // b = num / 100 % 10;
  19. // c = num / 10 % 10;
  20. // d = num % 10;
  21. // if (a % 2 != 0)
  22. // a = a - 1;
  23. // if (b % 2 != 0)
  24. // b = b - 1;
  25. // if (c % 2 != 0)
  26. // c = c - 1;
  27. // if (d % 2 != 0)
  28. // d = d - 1;
  29. // Console.WriteLine(a + "" + b + "" + c + "" + d);
  30.  
  31. //קלט מספר טפסים
  32. // פלט מספר שעות ודקות + שכר
  33. // Console.WriteLine("press");
  34. //int pw = int.Parse(Console.ReadLine());
  35. //int wt = pw * 10;
  36. //int Hwt = wt / 60;
  37. //int Mwt = wt % 60;
  38. //double pay = pw * 6.3;
  39. //Console.WriteLine(Hwt+"and"+Mwt);
  40. //Console.WriteLine(pay);
  41.  
  42.  
  43. // קלט: סכום כסף עודף
  44. //פלט: סך כל המטבעות ו כמה מטבעות מכל אחד
  45. //Console.WriteLine("press money");
  46. //int a = int.Parse(Console.ReadLine());
  47. //int a10 = a / 10;
  48. //int a5 = (a % 10) / 5;
  49. //int a1 = (a%5);
  50. //Console.WriteLine(a1+"of 1"+a5+"of 5"+a10+"of 10");
  51. //Console.WriteLine(a1 + a5 + a10+"סך כל המטבעות");
  52.  
  53. //a = int.Parse(Console.ReadLine());
  54. //b = int.Parse(Console.ReadLine());
  55. //Console.WriteLine("a=" + a + "b=" + b);
  56. //int c = a;
  57. //a = b;
  58. //b = c;
  59. //Console.WriteLine("a=" + a + "b=" + b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement