C PROGRAMS
C PROGRAMS
No
1
3
4
5
6
7
8
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PROGRAMS OF PRACTICAL FILE
Write a program to check whether roots of a given quadratic equation are real & distinct, real & equal or imaginar
Write a c program to input electricity unit charges and calculate total electricity bill according to the given conditio
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs.1.20/unit
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill.
Write a program to print square of first 10 natural numbers.
Write a program to print ‘N’ natural numbers in reverse order
Using switch statement, Write a program which takes the month number as an input and display number of days in
Write a program to check whether a given number is an Armstrong number or not (using function)
Write a program to calculate HCF of two numbers.(using function)
Write a function to print all Prime numbers between two given numbers.
Write a function to calculate the factorial of a number. Call this function from main() function. Pass the value of
factorial needs to be calculated, as an argument to this function. Function should calculate the factorial and
calculated factorial. In main() function receive this value in a variable and then print the value of this variable .
Write a program in C to find the cube of any number using the function.
Write a program to check whether a given number is there in the Fibonacci series.
Write a Program to check whether a year is a leap year or not. (Using switch statement).
Write a program to calculate the sum of numbers (10 numbers max). If the user enters a negative number, it shou
number and it should ask for any other number.(using continue break statement)
Write a function in C to count the frequency of each element of an array.
Write a function in C to print all unique elements in an array.
Write a function in C to merge two arrays of the same size. Elements in both the input arrays are already sorted
order. Output array should contain elements in sorted order.
Define a structure Student_Marks with member variables sID, sName, phyMarks, ChemMarks, MathMarks. Writ
store information of 5 students and display them.
Write a program in C to count the total number of alphabets, digits and special character in a string.
Write a program to convert a given string into uppercase
Write a program to convert a given string into lowercase
Write a program that swap the values of two integer variables of calling function using pointers.
Write a program to print a string in reverse using a pointer.
Write a program to compute the sum of all elements in an array using pointers
Write a program to print the elements of an array in reverse order using pointer
Write aprogram to count the number of vowels and consonants in a string using a pointer.