0% found this document useful (0 votes)
22 views

C Language

Uploaded by

krai694709
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

C Language

Uploaded by

krai694709
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

1

Write a program to calculate the area of triangle using formula at=√s(s- a)(s-b)(s-c)

1
2

Basic salary of an employee is input through the keyboard. The DA is 25% of the basic salary while the HRA
is 15% of the basic salary. Provident Fund is deducted at the rate of 10% of the gross salary (BS+DA+HRA).

2
3

Write a program to determine the roots of quadratic equation.

3
4

Write a program to find the largest of three numbers using nested if else.

Write a program to receive marks of physics, chemistry & maths from user & check its eligibility
for course if

a. Marks of physics > 40

b. Marks of chemistry > 50

c. Marks of math’s > 60

d. Total of physics & math’s marks > 150 or

e. Total of three subjects marks > 200

Write a program to find the value of y for a particular value of n. The a, x, b, n is input by user

a. if n=1 y=ax%b if n=2 y=ax2+b2 if n=3 y=a-bx

b. if n=4 y=a+x/b

4
5

5
6

6
7

Write a program to construct a Fibonacci series up to n term.

7
8

8 Write a program to find whether the number is Armstrong number.

8
9

9
10

Write a program to find the sum of following series 1-X1/1!+X2/2!…………Xn/n!.

10
11

11
12

Write a program to print the entire prime no between 1 and 300.

12
13

Write a program to print out all the Armstrong number between 100 and 500.

13
14

14
15

Write a program to draw the following figure:

321

21

**

***

15
16

Write a program in receive a five-digit no and display as like 24689:

a. 2
b. 4
c. 6
d. 8
e. 9
Write a function that return sum of all the odd digits of a given positive no entered through keyboard.

THANK YOU!
16
17

17

You might also like