vstoyanov

21 задача

Mar 30th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.  
  2. import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
  3.  
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.  
  10.  
  11.         Scanner scanner =new Scanner(System.in);
  12.  
  13.           int num=5;
  14.           int num2=10;
  15.  
  16.           int temp=num;
  17.           num=num2;
  18.           num2=temp;
  19.  
  20.           System.out.println(num);
  21.  
  22.         System.out.println(num2);
  23.  
  24.  
  25.  
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment