cla
s xyz
{
void main()
int a=10; int b=20;
int c=0;
c-a:
a=b;
b=c;
System.out.println("a="+a);
System.out.println("b="+b);
}}
Answers
Answered by
2
Answer:
CODE:
public class Main
{
public static void main(String[] args) {
int a=10; int b=20;
int c=0;
c=a;
a=b;
b=c;
System.out.println("a="+a);
System.out.println("b="+b);
}
}
OUTPUT:
a=20
b=10
Explanation:
Look at your given code and identify what all the mistakes you have done. I had modified all your mistakes and corrected it. I hope this helped you
Similar questions