write a progreamm to print ASCII CODE FOR LETTER/ ALPHABETS/CONSTANT 'B' 'b' 'M' 'm' 'Y' 'y' @ '' '3' '8' java
Answers
Answered by
9
class k
{
public static void main()
{
char ch1='B',ch2='b',ch3='M',ch4='m',ch5='Y',ch6='y',ch7='@',ch8='3',ch9='8';
int a=ch1,b=ch2,c=ch3,d=ch4,e=ch5,f=ch6,g=ch7,h=ch8,i=ch9;
System.out.println("ASCII code of 'B' is .."+a);
...............
}
}
Similarly u can write print statement for others.. just change the values wr necessary.. hope it helps
Similar questions