Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package georgi18119part3;
- /**
- *
- * @author s503
- */
- public class Georgi18119part3 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // for (char a = 'А'; a <= 'Я'; a++) {
- // System.out.print(a + " ");
- // System.out.println(Character.toLowerCase(a));
- // }
- // for (int i = 1072; i <= 1103; i++) {
- // System.out.print((char)i);
- // }
- /*programa koqto pokazva chislata na ednomeren masiv na stdout
- double a [] = new double [5];
- for (int i = 0; i < a.length; i++) {
- a[i] = i+200;
- }
- double sum = 0;
- for (int i = 0; i < a.length; i++) {
- System.out.println(a[i]);
- sum += a[i];
- }
- System.out.println("SUM of a[] is: " + sum);
- System.out.println("AVG of a[] is: " + sum/a.length);
- */
- for (int i = 0; i < 10; i++) {
- System.out.println("00000000001");
- }
- /* za dom da se razgleda klasovete Double and DecimalFormat
- kakvo e UNICODE and UTF
- da se prepravi gornata programa da printira edinicite po glavniq diagonal
- * 00000
- * 01000
- * 00100
- * 00010
- * 00001
- *
- * no tablicata da e 10x10
- *
- *
- * posle da opitate
- * oburnata piramida do 5tiq red samo
- * 1 1 1 1 1 1 1 1 1 1
- * 0 1 1 1 1 1 1 1 1 0
- * 0 0 1 1 1 1 1 1 0 0
- * 0 0 0 1 1 1 1 0 0 0
- * 0 0 0 0 1 1 0 0 0 0
- * 0 0 0 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0 0 0 0
- * 0 0 0 0 0 0 0 0 0 0
- *
- *
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement