Java

Java

PythonF

First X Consonants

The program must accept a string S and an integer X as the input. The program must print the first X consonants in the string S as the output.…