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;
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!