A simple Java program to calculate CGPA
This is a simple Java program that calculates the CGPA based on marks entered for multiple subjects (out of 100). It is beginner-friendly and useful for students learning Java basics such as loops, arrays, and user input handling.
-Takes marks for any number of subjects
-Validates marks (0–100)
-Calculates average percentage
-Converts it into CGPA (out of 10)
-Clean and easy-to-understand code
CGPA = (Total Marks / Number of Subjects) / 10