Mitko_jos

lab 1va zadaca

Apr 8th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package frst.program;
  6. import java.util.Scanner;
  7.  
  8. /**
  9.  *
  10.  * @author Mitko
  11.  */
  12. class FrstProgram {
  13.  
  14.     /**
  15.      * @param args the command line arguments
  16.      */
  17.     public static void main(String[] args) {
  18.         Scanner broj =new Scanner(System.in);
  19.         double n;
  20.         n=broj.nextDouble();
  21.        if(n==1){System.out.println("Ponedelnik/Raboten den");        
  22.     }
  23.       if(n==2){System.out.println("Vtornik/Raboten den");        
  24.     }
  25.       if(n==3){System.out.println("Sreda/Raboten den");        
  26.     }
  27.       if(n==4){System.out.println("Cetvrtok/Raboten den");        
  28.     }
  29.       if(n==5){System.out.println("Petok/Raboten den");        
  30.     }
  31.       if(n==6){System.out.println("Sabota/Raboten den");        
  32.     }
  33.       if(n==7){System.out.println("Nedela/neraboten den");        
  34.     }
  35.       if(n>7){System.out.println("Nadvor od interval");        
  36.     }
  37.      
  38. }
Advertisement
Add Comment
Please, Sign In to add comment