Вы находитесь на странице: 1из 5

# List of C Program

Part - I 1. /* Write a C program to find the area of a triangle, given three sides*/ 2. /* Write a C program to find the area of a circle, given the radius*/ 3. /* Write a C program to find the simple interest , given principle, * rate of interest and times*/ 4. /* Write a C program to check whether a given integer is odd or even*/ 5. /* Write a C program to check whether a given integer * number is positive or negative*/ 6. /* Write a C program to find the biggest of three numbers*/ 7. /* write a C program to find and output all the roots of a * * quadratic equation, for non-zero coefficients. In case * * of errors your program should report suitable error message*/ 8. /* Write a C program to simulate a simple calculator to perform * * arithmetic operations like addition, subtraction, multiplication * * and division only on integers. Error message should be reported * * if any attempt is made to divide by zero */ 9. /* Write a C program to find the sum of 'N' natural numbers*/ 10. /*Write a C program to generate and print first N FIBONACCI numbers*/ 11. /* Write a C program to find the GCD and LCM of two integers * output the results along with the given integers. Use Euclids' algorithm*/ 12. /* Write a C program to find the sum of odd numbers and * * sum of even numbers from 1 to N. Output the computed * * sums on two different lines with suitable headings */ 13. /* Write a C program to reverse a given integer number and check * * whether it is a palindrome. Output the given numbers with suitable* * message */ 14. /* Write a C program to find the value of sin(x) using the series * * up to the given accuracy (without using user defined function) * * Also print sin(x) using library function. */ 15. /* Write a C program to find the value of cos(x) using the series * * up to the given accuracy (without using user defined function) * * Also print cos(x) using library function. */ 16. /* Write a C program to check whether a given number is prime or not * * and output the given number with suitable message */ 17. /* Write a C program to generate and print prime numbers in a given * * range. Also print the number of prime numbers */ 18. /* Write a C program to find the number of integers divisible by 5 * * between the given range N1 and N2, where N1 < N2 and are integers.* * Also find the sum of all these integer numbers that divisible by 5* * and output the computed results */ 19. /* Write a C program to read N integers (zero, +ve and -ve) * * into an array A and to * * a) Find the sum of negative numbers * * b) Find the sum of positive numbers and * * c) Find the average of all input numbers * * Output the various results computed with proper headings */ 20. /* Write a C program to input N numbers (integers or reals) * * and store them in an array. Conduct a linear search for a * * given key number and report success or failure in the form * * of a suitable message */ 21. /* Write a C program to sort N numbers in ascending order * * using Bubble sort and print both the given and the sorted * * array with suitable headings */