Write a C program to check whether the attendance is PRESENT using simple if statement?
For example:
Input Result
P Present
Answers
Answered by
0
Answer:
ask question again one time
Explanation:
plz ask one more time
Answered by
0
Following is a C program to check whether the attendance is PRESENT using a simple if statement:
please refer to the attached screenshot for the code and sample output:
- firstly we have to ask the user to enter an alphabet.
- using the if statement we will check whether the alphabet entred is p or not.
- the, if statement will check whether the alphabet entered, is p : if true it displays present.
- for false, i.e, if any other alphabet is entered, it displays absent.
#SPJ2
Attachments:


Similar questions