C-Assignment No 1
C-Assignment No 1
C PROGRAMMING
BASIC ASSIGNMENT-1
1. Accept two numbers &print the sum of the two numbers.
5. Accept the length and height of triangle and calculate area (area=0.5*l*h);
8. Accept the 5 subject marks form users and calculate the total mark and
percentages and display it.
9. Accept rollno, name, marks of English, Hindi, Marathi & calculate the
following. Total marks, percentage & print all the details of student.
10. Accept id, name & basic salary of an employee & calculate the da, hra, ta,
grosssalary, Itax ,net salary.
Da=basic salary*5%
Hra=basic salary*12%
Ta=basic salary*8%
Gross salary= basic salary +Hra + Da + Ta
Itax=basic salary*10%
Net salary=gross salary-Itax.