Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package Czesc2;
  2.  
  3. /**
  4.  *
  5.  * @author Ania
  6.  */
  7. public class WyswietlanieLiczb2 {
  8.     public static void main( String[] args)   {
  9.     int a = 1;
  10.     int b = 2;
  11.     int c = 3;
  12.    
  13.     if ( a < b&&b<c){
  14.        
  15. System.out.println(a);
  16. System.out.println(b);
  17. System.out.println (c);
  18.   }
  19.  
  20.     else if (a<b&&b<c){
  21. System.out.println(a);
  22. System.out.println(b);
  23. System.out.println(c);
  24.  
  25.     }
  26.     else if ( a<b&& b>c){
  27. System.out.println(b);
  28. System.out.println(c);
  29. System.out.println(a);
  30.  
  31.  
  32. }
  33.     else if ( a>b&&b>c){
  34. System.out.println(c);
  35. System.out.println (b);
  36. System.out.println(a);
  37.  
  38.     }
  39.        
  40.     }
  41.    
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement