لعبة المزرعة السعيدة لعبة الفراخ

SWAP

 Example : 

                          ** SWAP **

_________________________________________________

 solution : 

import java.util.Scanner;
public class Swap {
public static void main (String []args){
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b=in.nextInt();
System.out.printf("%d%d\n",a,b);
swapper(a,b);
}
public static void swapper (int x , int y){
int temp =x;
x=y;
y=temp;
System.out.println(x+""+y);
}
}


0 التعليقات:

لعبة من سيربح المليون لعبة زوما