[go: up one dir, main page]

0% found this document useful (0 votes)
23 views2 pages

List of C Programs

The document outlines a series of C programming tasks and exercises, categorized into sections such as Simple Programs, Arrays, Strings, Functions, Pointers, Structures and Unions, and SkillRack. Each section includes specific programming challenges, such as finding prime numbers, performing matrix calculations, and developing a library management system. The tasks are designed to enhance programming skills through practical application of concepts in C.

Uploaded by

vetrivelpb530
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)
23 views2 pages

List of C Programs

The document outlines a series of C programming tasks and exercises, categorized into sections such as Simple Programs, Arrays, Strings, Functions, Pointers, Structures and Unions, and SkillRack. Each section includes specific programming challenges, such as finding prime numbers, performing matrix calculations, and developing a library management system. The tasks are designed to enhance programming skills through practical application of concepts in C.

Uploaded by

vetrivelpb530
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
You are on page 1/ 2

Ex.

Submission
C Programming
No Date
I Simple programs
1 Prime number and factorial

Write a C program to,


a) Find whether the number given by user is prime number or not.
b) Calculate the factorial of the number given by user.
c) Write a C program to generate the first ‘n’ terms of the Fibonacci sequence.
2 Sum of series

Write a C program to get an input ‘n’ from the user and compute the following series,
a) 1 ⋯ if n is an even number
! ! !

b) 𝑥 ⋯ if n is an odd number
! ! !

II Arrays
3 Matrix Calculation

Write a C program to get input of two 2x2 matrices from the user and perform the following
operations.
a) Add the two matrices
b) Subtract the first matrix from the second matrix
c) Element wise multiplication
4 Array Manipulation

Write a C program to get ‘n’ numbers as input from the user and,
a) Find the maximum and minimum number.
b) Sort them in ascending and descending order.
5 Basic Statistics

Write a C program to get ‘n’ numbers as input from the user and find,
a) Mean
b) Median
c) Mode
III Strings

6 Palindrome

Write a C program to get a string input from the user and check if the string is palindrome or
not.
7 Vowel-Consonant Count

Write a C program to get a string input from the user and count the number of vowels and
consonants in the string.
8 String manipulation

Write a C program to get a two-string input from the user and insert the second string within
the first string at a given position.
IV Functions

9 Calculator using functions

Write a C program to perform calculator operations using call by reference.


10 Number searching using functions

Write a C program to read a list of numbers and search for given number using binary search
algorithm and if found display its index otherwise display the message "element not found in
the list" using functions.
V Pointers

11 Number Swapping

Write a C program for swapping two numbers with pointers in C.


VI Structures and Unions

12 Library management system

Use Structures and Unions to develop a program for Library management system: 1) book title,
2) author of book, and 3) year of publication for a college library from the librarian. The
collected information has to be displayed when demanded.
VII SkillRack

13 C - Programming Course (Hands-On)

You might also like