C Lab(Bsc(Cs)I-I)


                                                                                          C Lab BS106
  1. Write a program to find the largest two (three) numbers using if and conditional operator.
  2. Write a program to print the reverse of a given number.
  3. Write a program to print the prime number from 2 to n where n is given by user.
  4. Write a program to find the roots of a quadratic equation using switch statement.
  5. Write a program to find largest and smallest elements in a given list of numbers.
  6. Write a program to find the product of two matrices..
  7. Write a program to find the GCD of two numbers using iteration and recursion.
  8. Write a program to illustrate use of storage classes.
  9. Write a program to demonstrate the call by value and the call by reference concepts.
  10. Write a program that prints a table indicating the number of occurrences of each alphabet in the text entered as command line arguments.
  11. Write a program to illustrate use of data type enum.
  12. Write a program to demonstrate use of string functions string.h header file.
  13. Write a program that opens a file and counts the number of characters in a file.
  14. 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.
  15. 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.
  16. 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.
                         

                                                               For more info visit    Degreecsa.blogspot.in

No comments:

Post a Comment