Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Czesc2;
- /**
- *
- * @author Ania
- */
- public class WyswietlanieLiczb2 {
- public static void main( String[] args) {
- int a = 1;
- int b = 2;
- int c = 3;
- if ( a < b&&b<c){
- System.out.println(a);
- System.out.println(b);
- System.out.println (c);
- }
- else if (a<b&&b<c){
- System.out.println(a);
- System.out.println(b);
- System.out.println(c);
- }
- else if ( a<b&& b>c){
- System.out.println(b);
- System.out.println(c);
- System.out.println(a);
- }
- else if ( a>b&&b>c){
- System.out.println(c);
- System.out.println (b);
- System.out.println(a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement