This C program checks the subject name entered by the user and displays corresponding marks.
-
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
-
Run: Run the compiled program:
./subject_mark_checker
-
Input: Follow the prompt to enter the subject name.
-
Output: The program will then display whether the subject is found or not. If found, it will display the corresponding marks for that subject.
Enter Your Subject Name: maths
You Have Entered maths
You Passed
Maths Mark = 70
- 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!