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 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);
0 التعليقات: