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

C Programming Exercises with Algorithms

The document contains a series of programming tasks in C, including calculating the area of a rectangle, volume of a cylinder, and various mathematical operations. Each task requires writing a C program, along with an algorithm and flowchart for at least one of the programs. The tasks cover concepts such as conditional statements, loops, recursion, and functions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

C Programming Exercises with Algorithms

The document contains a series of programming tasks in C, including calculating the area of a rectangle, volume of a cylinder, and various mathematical operations. Each task requires writing a C program, along with an algorithm and flowchart for at least one of the programs. The tasks cover concepts such as conditional statements, loops, recursion, and functions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q. 1 Write the C programs to calculate and display area of rectangle.

Q. 2 Write the C programs to calculate and display Volume of a Cylinder.


(Write Algorithm and Flowchart of any 1 program)
__________________________________________________________________________________

Q. 1 Write a C program to find the square root and cube of a number using Mathematical Functions.
Q. 2 Write the C programs to calculate and display average of three numbers.
(Write Algorithm and Flowchart of any 1 program)
__________________________________________________________________________________

Q. 1 Write a C program to check whether entered number is positive using if Statement.


Q. 2 Write a C program to check whether entered number is even or odd using if- else Statement.
(Write Algorithm and Flowchart of any 1 program)
__________________________________________________________________________________

Q. 1 Write a C program to check grade of a student based on marks using if-else-if ladder statements.
(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program to display the day of the week based on the entered number (1–7) using switch-case.
(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program to swap two numbers using pointers.


(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program to calculate the factorial of an entered number using recursion.


(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program using a function to find the sum of two numbers using call by value.
(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program using a function to find the Square of a number using call by reference
(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program to calculate and display the sum of numbers from 1 to 10 using for loop.
(Write Algorithm and Flowchart of program)
__________________________________________________________________________________

Q. 1 Write a C program to display the table of a number entered by the user using while loop.
(Write Algorithm and Flowchart of program)

You might also like