0% found this document useful (0 votes)
36 views1 page

C-Assignment No 1

Uploaded by

sutarashu45
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

C-Assignment No 1

Uploaded by

sutarashu45
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DiSHA COMPUTER INSTITUTE (Islampur)

C PROGRAMMING
BASIC ASSIGNMENT-1
1. Accept two numbers &print the sum of the two numbers.

2. Accept a number & print the square of the number

3. Accept a number & print the cube of the number

4. Accept the length and breadth of rectangle and calculate area.(area=l*b)

5. Accept the length and height of triangle and calculate area (area=0.5*l*h);

6. Accept the radius of circle& calculate (area=pi*r*r) & circumference


(circumference =2*pi*r)

7. Accept two numbers from user & interchange them (swapping).

I) Using third variable temp

II) Without using third variable

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.

You might also like