Set-2 C Programs

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

SET-2 C PROGRAMS

1. Write a C program to find the roots of given quadratic equation


2. Write a C program to calculate and display the total and average of the n student marks.
3. Write a C program to find whether the given number is even or odd
4. Write a C program to generate numbers between 20 and 100 which are divisible by 2 and
not divisible by 3 and 5
5. Write a C Program to print the given employee personal details using nested Structure
6. Write a C program to find the area and circumference of a circle
7. Write a C Program to generate Fibonacci series from 1 to n
8. Write a C program for Matrix addition and Subtraction using two dimensional arrays
9. Write a C program to determine biggest among two numbers using ternary operator
10. Write a C program for finding String Length, String Concatenation, String Comparison and
String Copy without using Library function.
11. Write a C program to check whether the given year is leap year or not
12. Write a C program to print all combinations of a 4-digit number
13. Write a C program to sort the given names in alphabetic order
14. Write a C program to find n C r using recursive function and conversion to its corresponding
flow chart.
15. Write a C program to find maximum of given three numbers using parameter passing.
16. Write a C program to find the factorial of given number using recursive function and draw
the corresponding flow chart.
17. Write a C program to swap two numbers
18. Write a C Program to implement payroll application with the given data by using structure.
HRA=18% of basic Pay, DA=15% of Basic Pay, PF =10% of Basic Pay, LIC =7% of Basic Pay,
Deduction= PF + LIC, Gross Salary = Basic Pay + HRA + DA Net Salary = Gross Salary –
Deduction.
19. Write a C program to find the sum of the following series: -x + x3 / 3! – x5 / 5! + … Adapt any
method for solving the problem
20. Write a C program to print the Transpose Matrix
21. Write a C program to find minimum of given three numbers using parameter passing
22. Writ a C program to find the min and max number in an array by using Linear Search
Technique.
23. Write a C program for Matrix multiplications using two dimensional arrays
24. Write a C program to find whether the given string is Palindrome or not.
25. Write a C program to form the Pascal’s Triangle
26. Write a C program for sorting an array of N data in both Ascending and Descending Order by
using bubble sort.
27. Write a C program to find the sum of ‘N’ natural number using function.
28. Write a C program for finding String Length, String Concatenation, String Comparison and
String Copy with using Library function.
29. Write a C program to swap two number using pass by value and references
30. Write a C program to find the square and cube of a number using a function declaration
using the return statement
31. Write a C Program to find a given number is a prime number or not
32. Write a C program to find the given number as an Armstrong number or not using User
defined function.
33. Write a C Program to implement payroll application with the given data by using structure.
HRA=18% of basic Pay DA=15% of Basic Pay
PF =10% of Basic Pay LIC =7% of Basic Pay
Deduction= PF + LIC Gross Salary = Basic Pay + HRA + DA
Net Salary = Gross Salary – Deduction
34. Write a C Program to print employee following personal details using nested structure:
EmpName, EmpId, DOB, Pan No, Phone, Address, City, Pin, Dept, Years of Experience.
35. Write a C Program to implement calculation of subject average of students using union

You might also like