Computer Science, asked by ayan7456, 1 year ago

(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 siddhartharao77
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 Abhis506
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