| List of experiments |
1. | WAP enter 2 number Swap in single line |
2. | W.A.P enter Celsius convert to Fahrenheit and Fahrenheit to Celsius |
3. | If a five digit number is input through the key board write a program to print a new number by adding one to each of its digits. For example if the number that is input is 12391, then the output should be display as 23502. |
4. | Write a Program to find greatest among three numbers. |
5. | W.A.P Enter a year check that year is leap year or not |
6. | W.A.P enter current month electric units and previous units find the units for used current month ,if units 0 to 50 per units 3rupees,51-200 (4.8),201-400(5.8) above 401 per units 6.2 print current due of consumer. |
7. | W.A.P enters yearly income and calculate income tax slab rate in FY 2022-2023 for individuals below 60 years. Up to 2.5 lakh Nil , 2,50001 -5,00000 5% 5,00001-7,50,000 10% 7,50,001,-10,00000 15% 10,00000-12,50,000 ;20% 12,50,000-15,00,000 25% Above 15 lakh 30% |
8. | Write a Program to all arithmetic operation using switch case |
9. | Write a Program to print the sum and product of digits of an integer. |
10. | Write a Program to reverse a number. |
11. | W.A .P Print factorial of a number |
12. | W.A.P Enter a number check the number is Armstrong number or not. |
13. | Binary to decimal convert |
14. | W.A.P to print Fibonacci series enter by user upper rang |
15. | Write a Program to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+…… |
16. | Write a Program to compute the sum of the first n terms of the following series S =1-2+3-4+5……………. |
17. | Write a function that checks whether a given string is Palindrome or not. Use this function to find whether the string entered by user is Palindrome or not. |
18. | Write a function to find whether a given no. is prime or not. Use the same to generate the prime numbers less than 100. |
19. | Write a Program to compute the factors of a given number. |
20. | Write a program to swap two numbers using macro. |
21. | Write a Program to print a triangle of stars as follows (take number of lines from user): * *** ***** ******* |
22. | Floyd’s Triangle 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 |
23. | Draw following pyramid 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 121 1 |
24. | Display twin prime number 1 to 100 |
25. | Write a Program to perform following actions on an array entered by the user: a) Print the even-valued elements b) Print the odd-valued elements c) Calculate and print the sum and average of the elements of array d) Print the maximum and minimum element of array e) Remove the duplicates from the array f) Print the array in reverse order The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program. |
26. | W.A.P input data in an array display ascending order using selection sort |
27. | Searching element in array |
28. | W.A.P input data in an array display ascending order using bubble sort |
29. | W.A.P input data in an array display ascending order using insertion sort |
30. | C Program to Multiply Two 3 X 3 Matrices |
31. | C program to calculate sum of Upper Triangular Elements in C |
32. | Write a Program that prints a table indicating the number of occurrences of each alphabet in the text entered as command line arguments. |
33. | Write a program that swaps two numbers using pointers. |
34. | Matrix addition using pointer function |
35. | Write a program in which a function is passed address of two variables and then alter its contents. |
36. | Write a program which takes the radius of a circle as input from the user, passes it to another function that computes the area and the circumference of the circle and displays the value of area and circumference from the main( ) function. |
37. | C Program to print Fibonacci Series using recursion |
38. | C Program for Calculate H.C.F using recursion |
39. | Write a program to find sum and average of n elements entered by the user. To write this program, allocate memory dynamically using malloc( ) / calloc( ) functions. |
40. | Write a menu driven program to perform following operations on strings: a) Show address of each character in string b) Concatenate two strings without using strcat function. c) Concatenate two strings using strcat function. d) Compare two strings e) Calculate length of the string (use pointers) f) Convert all lowercase characters to uppercase g) Convert all uppercase characters to lowercase h) Calculate number of vowels i) Reverse the string |
41. | Program to sort set of strings in alphabetical order |
42. | W.A.P enter a Mail id Check it is valid or invalid |
43. | W.A.P program to input a string and convert it into uppercase and print the pair of vowels and number of pair of vowels occurring in the string. |
44. | Given two ordered arrays of integers, write a program to merge the two-arrays to get an ordered array. |
45. | C Program: Print Details of 50 students using Structure |
46. | Write a program in C to take details of 3 students as input and display the result by passing the structure to a function |
47. | Write a program to copy the content of one file to other. |
48. | C program to read name and marks of n number of students and store them in a file. |
49. | W.A.P to Compare two text/data files check whether two files are identical or not. |
50. | Example of Storage Class |