Skip to content

Sujal1201/if-else-if-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published