a program in C language that asks the user to enter the marks obtained in three subjects.Calculate the average marks and display the student details.

Explanation:
We declare three variables phy,chem, and maths to store the marks obtained in three subjects. We declare a variable per to store the average of the marks.
We ask the user to enter the marks obtained in physics, chemistry and mathematics subject using printf and scanf.
We calculate the average marks by adding the marks of all three subjects and dividing by 3.
We display the student details including marks obtained in each subject and the average marks using printf.
The average marks are displayed with two decimal places using .2f in the format specifier.
The program then returns 0 to indicate successful execution.


1.Write a program in C to find area of circle using single-line comments.
2.Write a C program to find addition of two numbers with multi-line comments to write down the purpose of every steps.
3.Write a program in C that describe a complex mathematical formula with nested comments.
4.Write a C program to demonstrate the declaration and initialization of variables of different data types.
5.write a program code in c to swap a values of the two variable without using a third variable.
6.Write a program in c to find area of rectangle by accepting variable value length and width.
7.Write a program that accepts user input for employee name and salary, and then display them using those variables.
8.Write a program in C to demonstrate and decide the size of int, float, char, and double data types.
9.Write a program in C to convert temperature from Celsius to Fahrenheit using proper data types.
11.Write a program in C that accepts any two numbers from user and calculate addition, multiplication, subtraction and division (+, *,-, /) and show the result.
12.Write a program in c input user name, age And display it.

Other Topic:-->>Dynamic memory FAQ. || Operators Assignments in C.