C Lab BS106
- Write a program to find the largest two (three) numbers using if and conditional operator.
- Write a program to print the reverse of a given number.
- Write a program to print the prime number from 2 to n where n is given by user.
- Write a program to find the roots of a quadratic equation using switch statement.
- Write a program to find largest and smallest elements in a given list of numbers.
- Write a program to find the product of two matrices..
- Write a program to find the GCD of two numbers using iteration and recursion.
- Write a program to illustrate use of storage classes.
- Write a program to demonstrate the call by value and the call by reference concepts.
- Write a program that prints a table indicating the number of occurrences of each alphabet in the text entered as command line arguments.
- Write a program to illustrate use of data type enum.
- Write a program to demonstrate use of string functions string.h header file.
- Write a program that opens a file and counts the number of characters in a file.
- Write a program to create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file.
- Write a program that opens an existing text file and copies it to a new text file with all lowercase letters changed to capital letters and all other characters unchanged.
- Write a program to print a triangle of stars as follows (take number of lines from user):
* * *
* * * * *
* * * * * * *
* * * * * * * * *
Note:
Write the Pseudo Code and draw Flow Chart for the above programs.
Recommended to use Open Source Software: GCC on Linux; DevC++ (or) CodeBlocks on Windows 10.
Recommended to use Open Source Software: GCC on Linux; DevC++ (or) CodeBlocks on Windows 10.
No comments:
Post a Comment