Computer Science, asked by aadhiseshan18502, 3 months ago

Write a C program to check whether the attendance is PRESENT using simple if statement?
For example:

Input Result
P Present

Answers

Answered by kalpnajoshi1972
0

Answer:

ask question again one time

Explanation:

plz ask one more time

Answered by RitaNarine
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