Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.05 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.05 KB

if-else-if-2

Subject Mark Checker

This C program checks the subject name entered by the user and displays corresponding marks.

How to Use

  1. Compile: Compile the program using a C compiler. For example, you can use gcc on Linux or MinGW on Windows:

    gcc main.c -o subject_mark_checker
    
  2. Run: Run the compiled program:

    ./subject_mark_checker
    
  3. Input: Follow the prompt to enter the subject name.

  4. Output: The program will then display whether the subject is found or not. If found, it will display the corresponding marks for that subject.

Usage Example

Enter Your Subject Name: maths

You Have Entered maths

You Passed

Maths Mark = 70

Notes

  • The program accepts subject names like "english", "maths", "marathi", and "hindi".
  • If the entered subject is found, it displays a pass message and corresponding marks.
  • If the entered subject is not found, it displays a message indicating that the subject was not found.

Feel free to use and modify this program according to your needs!