Answers

2015-12-07T12:46:09+05:30
Import java.util.*;
class Sample {
public static void main() {
String s,str,s1;
System.out.println(" Enter the string. ");
Scanner sc=new Scanner(System.in);
s=s.trim(sc.next line());
str=s.toLowerCase();
int i,l;
char c;
l=str.length();
for(i=0;ic=str.charAt(i);
if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u'){continue;}
else{ s1+=s.charAt(i);}}
System.out.println(" Output : "+s1);
}}


0
replace the for statement with : for(i=0;i