Operators precedence

sir when i give input as like this
HELLO world 101!@$
then in output it shows this
Digits 3
Alphabets 5
Spaces 2
Others 7

Sir my program is not recognizing capital letters as alphabets. Why is it so??

@pushkar24sharma your code?

1 Like


@vatsal38 sir this is my code


@vatsal38 sir and this is my output.

@pushkar24sharma ch>=ā€˜A’ && ch<=ā€˜Z’ line 12
is it ok now?

1 Like

okay thank u @vatsal38 sir. my mistake.

@pushkar24sharma np just mark it resolved and if you want hit like :smiley:

1 Like