Computer Science, asked by altazarfrost, 3 months ago

a)
Write down the output of the following:
int a = 20;
System.out.println (a++);
System.out.pruntio (++a);
a+=2;
System.
out. printin (a);

Answers

Answered by ItzMeSam35
2

OUTPUT OF THE SEGMENT :

20

22

24

Answered by anjumanyasmin
0

Given Program is  :

int a = 20;

System.out.println (a++);

System.out.pruntio (++a);

a+=2;

System.

out. printin (a);

The output of the program is :

20

22

24.

Similar questions