Write a Java program to interchange two input two numbers and then interchange them.
ir should be given like
step 1 : --------
step 2 : -------
Answers
Answered by
0
Answer:
import hava.util ;
class change
{
p.s.v.m ()
{
Scanner sc = new Scanner (System.in);
int a , b ,c ;
S.o.pln ( " enter the value for a & b );
a= sc.nextInt( ) ;
b = sc. nextInt ( ) ;
a = c ;
b = a;
c = b ;
System .out. println ( "exchange value for a " +a ) ;
S.o.pln ( "for b " +b );
}
}
Answered by
0
Answer:
Write a Java program to interchange two input two numbers and then interchange them.
ir should be given like
step 1 : --------
step 2 : -------
Explanation:
hi dear now my name is xxajayxx i changed my name and good morning dear
Similar questions