(e) Write the output :
char ch = 'F';
int m = ch;
m = m + 5;
System.out.println (m+""+ch);
__________________________________
need answer..
and how you got that answer..?
__________________________________
30pts.!
Attachments:
Answers
Answered by
60
Sample Program:
char ch = 'F';
int m = ch;
m = m + 5;
System.out.println(m + " "+ch);
Output:
75 F
Explanation:
ch = 'F';
m = ch; 70(ASCII value of F = 70)
m = m + 5; (m = 70 + 5 = 75)
System.out.println(75 F )
Hope it helps!
Answered by
10
Sample Program:
char ch = 'F';
int m = ch;
m = m + 5;
System.out.println(m + " "+ch);
Output:
75 F
Explanation:
ch = 'F';
m = ch; 70(ASCII value of F = 70)
m = m + 5; (m = 70 + 5 = 75)
System.out.println(75 F )
Hope it helps!
Similar questions