Thurs Batch Class X 8th May Progs
Thurs Batch Class X 8th May Progs
Paqe
Dau- 9
S482 WAP to accept a sentence and disploy in the follonina fonma
WoHd no. Wond Revense VOHe Conaonant
1 We ek
2.
3 33
eiou
Sting s=se.nextine(); Stxing g"AETOU"+=,m=";$=9+b"
jnt v:0, c=0, ctn=0:;Sustem.qut. printn C"'NoHdnolt VoweL\Eonsonan;
Nond)tRevense
fonCint i0; i[s.length );i**)
chat ch=s.chanAeC);
4Cchl)i
tettch: m= cht m;
laindea0f(ch)! -1)v*; else eir,f
elgei
Cty tt:
System.out. pxintln (ch':teil"'*m"y*t"t:
tm=
Sustem.out pxintln(s);
51) CoHCuhOM encoding ABeD-+4 EFGH
otHing &se. nexe(); XYZt5*CDE.
Sustem.out.pxintn C" Enten a no");int n=se.nettnt ),
nEn 26 Stxing t-n,
fon Cint i =0, iK3length);i )
chonchS.chauAYCi);:
CchA 2chts}
ch: Cchonchn),
1Cch ch Cchan)ch- 26):3
else i Cch >a ee chz)
ch Cchan) Cchn),
Paqe