0% found this document useful (0 votes)
98 views

List of C Program

The document lists 39 different C programs including programs to: 1) Display messages and perform basic math operations like addition and division of numbers 2) Calculate the volume and area of shapes like spheres and triangles using formulas 3) Perform operations like converting between temperature scales, finding averages, interest calculation 4) Demonstrate logical and looping constructs like if/else, switch statements, for loops to print patterns 5) Define and call functions to perform repetitive tasks like calculating factorials and Fibonacci sequences recursively.

Uploaded by

Gaurav Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

List of C Program

The document lists 39 different C programs including programs to: 1) Display messages and perform basic math operations like addition and division of numbers 2) Calculate the volume and area of shapes like spheres and triangles using formulas 3) Perform operations like converting between temperature scales, finding averages, interest calculation 4) Demonstrate logical and looping constructs like if/else, switch statements, for loops to print patterns 5) Define and call functions to perform repetitive tasks like calculating factorials and Fibonacci sequences recursively.

Uploaded by

Gaurav Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

LIST OF C PROGRAMS

1. WAP to display the message on the screen “(1) Welcome to LPU (2) Hello”.
2. WAP to display the result of addition of two nos.
3. WAP to display the result of division of two nos.
4. WAP to print the name, address, ph no details of student.
5. WAP to find greatest among three numbers.
6. WAP to calculate the volume & area of a sphere using symbolic constant PI = 3.14
7. WAP to convert the temperature from Centigrade to Fahrenheit temp.
8. WAP to find the average of three nos.
9. WAP to compute simple interest & compound interest.
10. WAP to interchange value of two variables using third variable.
11. WAP to interchange value of two variables without using third variable.
12. WAP to convert time in seconds to time hours, minutes & seconds.
13. WAP to find the volume of a box.
14. WAP to find the area of triangle by using Hero’s formula.
15. WAP to find the sum & multiplication of two Hexadecimal numbers.
16. WAP to find the factorial of a number.
17. WAP to print the ‘n’ terms of Fibonacci series.
18. WAP to find the Prime number.
19. WAP to find a given number is Even or Odd.
20. WAP to print the Reverse of digit & sum of that reverse series.
21. WAP to print the first “N” tables.
22. WAP to print the colour according to the code using Switch Statement.
23. WAP to print average marks of ‘N’ students.
24. WAP to print GCD/HCF of two numbers.
25. WAP to demonstrate the use of Switch statement or continue, break & conditional
operators like days of week & months.
26. WAP to print the following Floyd’s triangle:
1 *
1 2 or * *
1 2 3 * * *
27. WAP to print the following Floyd’s triangle:
1
2 3
4 5 6
28. WAP to print the following pattern:
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
29. WAP to print the following pattern:
*
*****
*******
*****
*
30. WAP to print out all Armstrong numbers between 1 to 1000
31. WAP to prints all combinations of characters A, B, C.
32. WAP to find whether the string is palindrome or not.
33. WAP to the multiplication of two numbers using Function.
34. WAP to find the factorial of a number using Function.
35. WAP to print the Fibonacci series using Function.
36. WAP to print the Fibonacci series using Recursion.
37. WAP to find the factorial of a number using Recursion.
38. WAP to find the HCF of ‘n’ numbers using Recursion.
39. WAP to print the sum of digits of a number using Recursion. [Hint: 34 is 7]

You might also like