Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
List of Programs
1. Write a C program to get an input from keyboard and print it.
2. Write a C program to get two numbers from keyboard and add them. 3. Write a C program to check an integer whether odd or even. 4. Write a C program C program to perform addition, subtraction, multiplication and division. 5. Write a C program to swap two numbers. 6. Write a C program to check whether a given integer is positive. 7. Write a c program C program to check whether input alphabet is a vowel or not. 8. Write a C program to check leap year. 9. Write a C program to find the largest of 3 numbers 10. Write a C program to solve the quadratic equation. 11. Write a C program to display the consecutive digits 0, 1, 2, . . . ,9. 12. Write a C program to find the sum of odd and even numbers from 1 to N.
13. Write a C program to calculate factorial of a number.
14. Write a C program to find the average of a list of numbers. 15. Write a C program to find the greatest common divisor (GCD) and least common multiple (LCM) of two numbers. 16. Write a C program to find the number of integers divisible by 5 between the given range num1 and num2, where num1 < num2. Also find the sum of all these integer numbers which are divisible by 5 and display the total. 17. Write a C program to convert a line of lowercase text to uppercase. 18. Write a program that asks user an arithmetic operator('+','-','*' or '/') and two operands and perform the corresponding calculation on the operands. 19. Write a C program to find the average of maximum of N positive numbers entered by user. But if the input is negative, display the average (excluding the average of negative input) and end the program. 20. Write a C program to find the average of a list of positive numbers only. If user enters negative number skip it. 21. Write a C program to find the product of N integers entered by user. If user enters 0 skip it. 22. C program to find nCr and nPr: This code calculate nCr which is n!/(r!*(n-r)!) and nPr = n!/(n-r)! 23. Write C Program to reverse a number. 24. Write a C program to check Palindrome number: A palindrome number is a number such that if we reverse it, it will not change. 25. Write a C program to print patterns of numbers and stars. 26. Write a C program to print the diamond patterns of stars.
27. Write a C program to find a list of prime numbers.
28. Write a C program to find the fibonacci series in c programming: c program for Fibonacci series without and with recursion. 29. Write a C program to find the maximum or highest element in array. 30. Write a C program to find the minimum or smallest element in array. 31. Write a C program to find an item from an array by Linear search. 32. Write a C program to find an item from an array by binary search. 33. Write a C program to reverse an array. 34. Write a C program to insert an element into an array. 35. Write a C program to delete an element from an array. 36. Write a C program to add two matrices. 37. Write a C program to Subtract matrices 38. Write a C program to transpose a matrix. 39. Write a C program to multiply two matrices. 40. Write a C program to print a string. 41. Write a C program to print length of string. 42. Write a C program to compare two strings. 43. Write a C program to copy a string. 44. Write a C program to concatenate two strings. 45. Write a C program to reverse a string. 46. Write a C program to delete vowels from a string 47. Write a C program to check subsequence. 48. Write a C program to remove spaces, blanks from a string. 49. Write a C program to change the case of a string. 50. Write a C program to swap two strings. 51. Write C program to find frequency of characters in a string. 52. Write C program to find the anagrams. Two words are said to be anagrams of each other if the letters from one word can be rearranged to form the other word. 53. Write a program to copy one string to another using pointer 54. Write a program to concatenate two strings using pointers. 55. Write a program to find the sum of all the elements of an array using pointers. 56. Write a program to search an element in array using pointers. 57. Write a C program to read a file. 58. Write a C program to copy a file 59. Write a C program to merge two files. 60. Write a C program to a delete a file. 61. Write a C program to generate random numbers. 62. Write a C program to add two complex numbers 63. Write a C program to accept two integers for a coordinate point and determine its quadrant. 64. Students need to do a project based on C language.