0% found this document useful (0 votes)
2 views1 page

C Lab Programming Exercises and Algorithms

The document contains a list of programming tasks and algorithms for C Lab, including writing programs for basic arithmetic operations, geometric calculations, and data display. It also includes instructions for drawing flowcharts and writing comments in source code. The tasks are designed to help learners practice fundamental programming concepts.

Uploaded by

mahikurmi98
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

C Lab Programming Exercises and Algorithms

The document contains a list of programming tasks and algorithms for C Lab, including writing programs for basic arithmetic operations, geometric calculations, and data display. It also includes instructions for drawing flowcharts and writing comments in source code. The tasks are designed to help learners practice fundamental programming concepts.

Uploaded by

mahikurmi98
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C Lab-Based Programming Questions

1. Write a program to print your full name, age, and city.


2. Write a program to display the message 'Welcome to Programming World'.
3. Write a program to add two integers and display the result.
4. Write a program to find the area of a rectangle using formula A = l * b.
5. Write a program to find the perimeter of a square.
6. Write a program to calculate simple interest using SI = (P * R * T) / 100.
7. Write a program to find the area of a circle using the constant PI.
8. Write a program to convert kilometers into meters and centimeters.
9. Write a program to display your college name on three different lines.
10. Write a program to calculate total and average of three subject marks.
11. Write an algorithm to add three numbers.
12. Write an algorithm to find the area of a triangle using base and height.
13. Write an algorithm to convert Celsius temperature to Fahrenheit.
14. Write an algorithm to calculate compound interest.
15. Write an algorithm to find the perimeter of a rectangle.
16. Write an algorithm to convert time in hours to minutes and seconds.
17. Write an algorithm to calculate the volume of a cube.
18. Write an algorithm to calculate the surface area of a cuboid.
19. Write an algorithm to compute the total cost when price and quantity are given.
20. Write an algorithm to calculate the speed when distance and time are given.
21. Draw a flowchart to display the sum of two numbers.
22. Draw a flowchart to find the area of a circle.
23. Draw a flowchart to compute simple interest.
24. Draw a flowchart to convert kilometers to meters.
25. Draw a flowchart to find total and average of marks of three subjects.
26. Draw a flowchart to calculate the perimeter of a rectangle.
27. Draw a flowchart to print your name and roll number.
28. Draw a flowchart to compute the volume of a cylinder.
29. Draw a flowchart to convert temperature from Celsius to Fahrenheit.
30. Draw a flowchart to find the area of a triangle.
31. Write comments in your source program describing each step.
32. Write a program that declares three variables and displays their values.

You might also like