C PROGRAMMING LAB
I
CYCLE EXPERIMENTS
1. PRINTING ADDRESS
Aim:-Write
a program to print your name and address.
2.TEMPERATURE
CONVERSION
Aim:-Write
a program to conversion of temperature from F to C and wise verse.
3.DIVISION OF PASS
Aim:-Write
a program to find the grade of a student based on the mark secured in the 3
subjects.
Average
mark
|
Grade
|
80
- 100
|
A
|
60
- 79
|
B
|
40
- 59
|
C
|
0
-39
|
D
|
4.FACTORIAL
Aim:-Write
a program to find the factorial of a number.
5.SUM OF A SERIES
Aim:-Write
a program to find the sum of given series
S=.
6.ROOTS OF A
QUADRATIC EQUATION
Aim:-Write
a program to find the roots of a quadratic equation.
7.GREATEST OF THREE
NUMBERS
Aim:-Write
a program to find the greatest of 3 numbers.
8.REVERSING A NUMBER
Aim:-Write
a program to reverse the digit of a number.
9.PRIME NUMBER
Aim:-Write
a program to verify whether the given number is prime or not.
10.FIBONACCI SERIES
Aim:-Write
a program to generate the Fibonacci series (0,1,1,2,3,5,8,…n.)
11.AMSTRONG NUMBER
Aim:-Write
a program to check whether the given number is Amstrong or not.
12.PRIME NUMBER
SERIES
Aim:-Write
a program to generate the prime numbers up to n.
13.LARGEST OF N
NUMBERS
Aim:-Write
a program to find the largest integer from an array of n numbers.
14.SUM OF EVEN
NUMBERS
Aim:-Write
a program to find the sum of even numbers in an array of n integers.
15.OCCURRENCE OF A
CHARACTER
Aim:-Write
a program to find the occurrence of a character in a string.
16.COUNT OF VOWELS
Aim:-Write
a program to finding the count of vowels in a string.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.