write down the syntax to check whether a character is in uppercase or not
Answers
Answered by
3
Answer:
Explanation:
Input a character from user. Store it in some variable say ch .
Character is uppercase alphabet if(ch >= 'A' and ch <= 'Z') .
Character is lowercase alphabet if(ch >= 'a' and ch <= 'z') .
If none of the above conditions met, then character is not alphabet.
Answered by
2
Answer:
Syntax of if else statement:
If condition returns true then the statements inside the body of “if” are executed and the statements inside body of “else” are skipped. If condition returns false then the statements inside the body of “if” are skipped and the statements in “else” are executed.
Similar questions
Social Sciences,
5 months ago
Biology,
5 months ago
Business Studies,
10 months ago
Science,
10 months ago
History,
1 year ago