given the java program, What are the final values of a, b, and
c? What is the output of the program?
int a=8, b=3, c= 4;
if (a>b)
if (a !=1)
a=a+b;
else a=a-b;
else
a=++a;
System.out.println(“a=”+a);
given the java program, What are the final values of a, b, and c? What is the output of the program? int a=8, b=3, c= 4;
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am