❤︎ANY ☀︎︎MODERATORS☀︎︎
☆STARS☆
♥︎AND OTHER BEST USERS♥︎
⌫SPAM NOT ALLOWED⌫
Answers
Find the output of the following questions:
Q1. System.out.println ("a+b+c="+(a+b+c));
Output: a+b+c=(a+b+c)
(Note: Here there isn't given any constant value in place of "(a+b+c)", so it will be printed as it is.)
Q2. System.out.println ("Sum is"+ab+c);
Output: Sum is ab+c
(Note: Here there isn't given any constant value in place of "ab+c", so it will be printed as it is.)
Q3. System.out.println ("(a,b,c)="(+"a+",+"b+",+"c+"));
Output: (a,b,c)=a+b+c+
(Note: Here there isn't given any constant value in place of "a+b+c+", so it will be printed as it is, and in your question this códe is little bit wrong, nothing more just double quotation marks (") are in wrong places, so please correct your question.)
Q4. System.out.println ("a>b="+a>b);
Output: a>b=a>b
(Note: Here there isn't given any constant value in place of "a>b", so it will be printed as it is.)
Write the output statement of the following:
Q1. a<b<c=2<5<6
Output Statement: System.out.println ("a<b<c="+a"<"+5"<"+6);
Q2. 2+5+6=13
Output Statement: System.out.println ("2+5+6="+d);
(Note: If we have taken d as a+b+c then we will use d here)
Q3. (b+c)=11
Output Statement: System.out.println ("(b+c)="+d);
(Note: If we have taken d as b+c then we will use d here)
Q4. a+b+c=7c
Output Statement: System.out.println ("a+b+c="+dc);
(Note: If we have taken d as a+b then we will use d here)