Computer Science, asked by singhriya8390, 4 months ago

wap to accept a string and print it after removing all the vowels from the string
E.G. - sample input: Country
sample output: Cntry​

Answers

Answered by agrim9928
0

Answer:

HOPE IT HELPS YOU MATE!!!

Explanation:

print("Enter a String : ");

str1 = scan. nextLine();

str2 = str1. replaceAll("[aeiouAEIOU]", "");

System. out. print("All Vowels Removed Successfully..!!\nNew String is : ");

System. out. print(str2); }

MARK ME AS BRAIN LIST!!!

Similar questions