Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package georgi18119part3;
  6.  
  7. /**
  8. *
  9. * @author s503
  10. */
  11. public class Georgi18119part3 {
  12.  
  13. /**
  14. * @param args the command line arguments
  15. */
  16. public static void main(String[] args) {
  17.  
  18. // for (char a = 'А'; a <= 'Я'; a++) {
  19. // System.out.print(a + " ");
  20. // System.out.println(Character.toLowerCase(a));
  21. // }
  22. // for (int i = 1072; i <= 1103; i++) {
  23. // System.out.print((char)i);
  24. // }
  25. /*programa koqto pokazva chislata na ednomeren masiv na stdout
  26.  
  27.  
  28. double a [] = new double [5];
  29.  
  30. for (int i = 0; i < a.length; i++) {
  31. a[i] = i+200;
  32. }
  33.  
  34. double sum = 0;
  35. for (int i = 0; i < a.length; i++) {
  36. System.out.println(a[i]);
  37. sum += a[i];
  38. }
  39.  
  40. System.out.println("SUM of a[] is: " + sum);
  41. System.out.println("AVG of a[] is: " + sum/a.length);
  42. */
  43.  
  44. for (int i = 0; i < 10; i++) {
  45. System.out.println("00000000001");
  46. }
  47. /* za dom da se razgleda klasovete Double and DecimalFormat
  48. kakvo e UNICODE and UTF
  49.  
  50. da se prepravi gornata programa da printira edinicite po glavniq diagonal
  51. * 00000
  52. * 01000
  53. * 00100
  54. * 00010
  55. * 00001
  56. *
  57. * no tablicata da e 10x10
  58. *
  59. *
  60. * posle da opitate
  61. * oburnata piramida do 5tiq red samo
  62. * 1 1 1 1 1 1 1 1 1 1
  63. * 0 1 1 1 1 1 1 1 1 0
  64. * 0 0 1 1 1 1 1 1 0 0
  65. * 0 0 0 1 1 1 1 0 0 0
  66. * 0 0 0 0 1 1 0 0 0 0
  67. * 0 0 0 0 0 0 0 0 0 0
  68. * 0 0 0 0 0 0 0 0 0 0
  69. * 0 0 0 0 0 0 0 0 0 0
  70. * 0 0 0 0 0 0 0 0 0 0
  71. * 0 0 0 0 0 0 0 0 0 0
  72. *
  73. *
  74. */
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement