Computer Science, asked by mass27, 1 year ago

The program must accept two lower case alphabets CH1 and CH2 as the input. The program must
print all the consonants from CH1 to CH2 as the output.
Input Format:
The first line contains CH1 and CH2 separated by a space.
Output Format:
The first line contains all the consonants from CH1 to CH2.
Example Input/Output 1:
Input:
a z
Output:
b c d f g h j k l m n p q r s t v w x y z​

Answers

Answered by guruu99
0

The given program is designed to accept two lower case alphabets (CH1 and CH2) as input and print all the consonants from CH1 to CH2 as the output.

The input must be given in the format mentioned in the question, with the two alphabets separated by a space.

The output will contain all the consonants from CH1 to CH2, listed in order.

For example, if the input is 'a z', then the output will be 'b c d f g h j k l m n p q r s t v w x y z'. The program will be useful in finding out the consonants in a given range of alphabets and can be used in various applications.

The programming language C is used to write the program. The program starts by taking the input of CH1 and CH2. The loop is used to iterate the range of alphabets from CH1 to CH2. In the loop, the if statement is used to check if the alphabet is a consonant.

For more information on looping, click : https://brainly.in/question/50806238

To know more about C programming language, click :

https://brainly.in/question/12809215

#SPJ2

Similar questions