Computer Science, asked by bristidutta2007, 11 days ago

scanner in = new scanner(system.in) int n1 = 100, n2 =0, n3 = 0; n2=++n1; n3= n2++ + ++n1; system.out.println("n1 = "+n1); system.out.println("n2 = " +n2); system.out.println("n3="+n3); system.out.println(); char a = (char)905/10+47%8+29%14; system.out.println(a); system.out.println("-14%3="+(-14%3)); system.out.println("-14%-3="+(-14%-3)); system.out.println("14%-3="+(14%-3));



*please answer this program*​

Answers

Answered by drift9218
0

Answer:

n1 = 102

n2 = 102

n3=203

b

-14%3=-2

-14%-3=-2

14%-3=2

Explanation:

Firstly, there are some minor errors which need to be fixed; for example, "System.out.println" instead of "system.out.println" but I believe you know them already. So, I fixed them and ran them and it yeilded the above o/p

Similar questions