Skip to content
Programmingoneonone
Programmingoneonone
  • Engineering Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
    • 100+ C++ Programs
  • Solutions
    • HackerRank
      • Algorithms Solutions
      • C solutions
      • C++ solutions
      • Java solutions
      • Python solutions
    • Leetcode Solutions
    • HackerEarth Solutions
  • Work with US
Programmingoneonone
Programmingoneonone
Student marksheet program in c programming

Student Marksheet Program in C Programming

YASH PAL, 31 July 202419 February 2026

Student marksheet program in c – In this post, we are going to make a Program in C Programming that will print the Marksheet of a Student. as an input program will take the user given data like his name, father’s name, student roll number, college name, and his midterm and semester marks for all subjects. and then it will print on the output screen in a proper mark sheet form as you can see in the below-given image.

Note: You can modify this program with your subject codes and subject names.

Student marksheet program in c programming
Student marksheet program in c
C program to print student mark sheet

Student Marksheet Program In C

#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

int main()
{
    char subjects[6][25] = {"Chemistry", "C Programming", "Mathematics", "Environment", "Electrical & Electronics", "Machine Engineering"};
    char subjcode[6][7] = {"CH-102", "CS-102", "MA-111", "CS-107", "EE-101", "ME-101"};
    int midmarks[6],semmarks[6], i=0;
    int MTotal = 0,count = 0;
    char name[30], fname[30], rno[10], college[50];
    printf("Enter your name: ");

    gets(name);
    printf("\nEnter your Father name: ");

    gets(fname);
    printf("\nEnter your Roll Number: ");

    gets(rno);
    printf("\nEnter your College name: ");
    gets(college);

    

    for(i=0; i<6; i++)
    {

        printf("\nEnter your midterm marks for %s: ", subjects + i);
        scanf("%d",&midmarks[i]);
        printf("Enter your semester marks for %s: ", subjects + i);
        scanf("%d",&semmarks[i]);
    }  

    printf("\n\n\n\n\t\t********************** YOUR RESULT *********************\n\n");
    printf("\t\tCOLLEGE: %s", college);
    printf("\n\t\tNAME: %s\t\tFATHER NAME: %s", name, fname);
    printf("\n\t\tROLL NUMBER: %s", rno);
    printf("\n\t\tSUBJECTS \t Marks1 \t Marks2 \t TOTAL");  

    for(i = 0; i < 6; i++)
    {
        printf("\n\t");
        printf("\t%s \t\t %d \t\t %d \t\t %d",subjcode[i], midmarks[i], semmarks[i], midmarks[i] + semmarks[i]);

        MTotal = MTotal + midmarks[i] + semmarks[i];
        if (midmarks[i] + semmarks[i] < 44)
            count = count + 1;    
    }

    if (count == 0)
        printf("\n\n\t\tTOTAL MARKS: %d \t\tRESULT: PASS", MTotal);
    else
        printf("\n\n\t\tTOTAL MARKS: %d \t\tRESULT: FAIL", MTotal);
    return 0;
}

Input

 
Enter your name: Ram Sharma

Enter your Father name: Shayam Sharma

Enter your Roll Number: DHU123

Enter your college name: delhi high university, Delhi

Enter your midterm marks for Chemistry: 15
Enter your semester marks for Chemistry: 40

Enter your midterm marks for C programming: 12
Enter your semester marks for C programming: 36

Enter your midterm marks for Mathematics: 16
Enter your semester marks for Mathematics: 48

Enter your midterm marks for Environment: 20
Enter your semester marks for Environment: 49

Enter your midterm marks for Electrical & Electronics: 12
Enter your semester marks for Electrical & Electronics: 39

Enter your midterm marks for Machine Engineering: 19
Enter your semester marks for Machine Engineering: 50

Output

***************** YOUR RESULT ******************

    COLLEGE: delhi high university, Delhi
    NAME: Ram Sharma    FATHER NAME: Shayam Sharma
    ROLL NUMBER: DHU123
    SUBJECTS        Marks1      Marks2      TOTAL
    CH-102          15          40          55
    CS-102          12          36          48
    MA-111          16          48          64
    CS-107          20          49          69
    EE-101          12          39          51
    ME-101          19          50          69

    TOTAL MARKS: 356            RESULT: PASS
c coding problems solutions cC ProgramPrograms

Post navigation

Previous post
Next post

Leave a Reply

Your email address will not be published. Required fields are marked *

The First C Program
Reading Input in a C Program
Compiling C Programs
C Program to read a number and print the factorial
C Program to Print the Sum of N Natural Numbers
C Program to Print Factorial of any Given Number
C Program to Check a Prime Number or Not
C Program to Print the Power of a Given Number
C Program to Print Factors of a Given Number
C Program to Print Factorial using Recursion
C Program to find gross salary
C Program to Reverse a Given Number
C Program to Swap Two Numbers without Using a Third Variable
C Program to Calculate the sum of subjects and find the percentage
C Program to convert temperature from centigrade to Fahrenheit
C Program to find simple interest
C Program to find the area and circumference of a circle
C Program to find the sum of two numbers
C Program to find the sum of two matrices
C Program to find even/odd numbers
C Program to display a matrix
C Program to show the use of the conditional operator
C Program to find the maximum number in an array
C Program to find the greatest of 3 Numbers
C Program to show the sum and average of 10 elements of an array
C Program to print a table of any number
C Program to add two numbers using pointers
C Program to use the bitwise AND operator between the two integers
C Program to display an odd number series and find the sum
C Program to display the sum of the harmonic series
C Program to print the Fibonacci series up to 100
C Program to print a star pattern in a pyramid shape
C Program to print a star pattern in a reverse triangle shape
C Program to print a star pattern in a triangle shape
C Program to display the first 10 natural numbers and their sum
C Program to display arithmetic operations using a switch case
C Program to display weekdays using a switch statement
C Program to find the subtraction of two matrices
C Program to shift input data by two bits to the left
C Program to find occurrences of vowels, consonants, words, spaces and special characters in give sentence
C Program to merge two arrays, excluding the repeating elements
C Program to perform file operations
C Program to find a palindrome number
C Program to find the largest of two numbers using the function
C Program to show call by reference
C Program to show call by value
C Program to show a table of numbers using a function
C Program to find the factorial of a number using a function
C Program to swap two numbers using a function
C Program to find the square of a number using a function
C Program to show input and output of a string
C Program to print the powers of 2 tables for the powers 0 to 20
C Program to find the maximum number in an array using a pointer
C Program to print the multiplication table
C Program to find the transpose of a matrix
C Program to evaluate the equation y=xn
C Program to find the multiplication of two matrices
C Program to display months using enum
C Program for finding the largest number in an array
C Program for sorting the elements of an array in descending order
C Program to count the number of students in each group
C Program to evaluate a square expression and its sum
C Program for plotting of two functions
C Program of minimum cost problem
C Program to draw a histogram
C Program to print a binomial coefficient table
C Program to read a line of text
C Program to illustrate the use of the continue statement
C Program to read a string using the scanf() function
C Program to evaluate the geometric progression series
C Program for production and sales analysis
C Program to illustrate the use of the break statement
C Program to evaluate response to a multiple-choice test
C Program to print the total marks obtained by a student
C Program to calculate standard deviation
C Program to sort a list of numbers and to determine the median
C Program for finding the desired kth smallest element in an array
C Program for removing duplicate elements in an array
C Program to use functions with no arguments and no return values
C Program to sort a customer list in the alphabetical list
C Program for counting characters, words, and lines in a text
C Program to sort a list of names in alphabetical order
C Program to calculate the square and cube by using a function as an argument
C Program to use string handling functions
C Program to return only absolute values
C Program to concatenate a string
C Program to pass arguments to a user-defined function by value/reference
C Program to print the Character and Decimal value of alphabet
C Program to return more than one value from a user-defined function
C Program to count the number of characters copied into a string
C Program to show the use of user defined function
C Program to use global variables on different functions
C Program to use similar variables in different functions
C Program to define & call user-defined functions
C Program to call a user-defined function
C Program to find the power of a value using a function
C Program to use functions with arguments and return values
C Program to use functions with arguments but no return values
C Program to use the ++ operator with the return value of a function
C Program to perform multiplication and division of numbers
C Program to perform addition and subtraction of numbers
C Program to assign the return value of a function to another variable
C Program to call the function through a for loop
C Program to call the user-defined function through the switch() statement
C Program to call the user-defined function through an if statement
C Program to evaluate the function equation s = sqr(a() + b())
C Program to use modulo % with a function
Student marksheet program in C programming

Programmingoneonone

We at Programmingoneonone, also known as Programming101 is a learning hub of programming and other related stuff. We provide free learning tutorials/articles related to programming and other technical stuff to people who are eager to learn about it.

Pages

  • About US
  • Contact US
  • Privacy Policy

Practice

  • Java
  • C++
  • C

Follow US

  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2026 Programmingoneonone | WordPress Theme by SuperbThemes