0% found this document useful (0 votes)
7 views

C Programming 2nd Lab IA Syallbus

The document outlines a series of programming tasks divided into two parts. Part A includes tasks such as printing prime numbers, concatenating strings, summing even and odd numbers from an array, and removing duplicates from a list. Part B focuses on string analysis, matrix operations, and the use of structures and unions in C programming.

Uploaded by

Vaibhav Kulkarni
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)
7 views

C Programming 2nd Lab IA Syallbus

The document outlines a series of programming tasks divided into two parts. Part A includes tasks such as printing prime numbers, concatenating strings, summing even and odd numbers from an array, and removing duplicates from a list. Part B focuses on string analysis, matrix operations, and the use of structures and unions in C programming.

Uploaded by

Vaibhav Kulkarni
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/ 1

PART -A

9. Write a program that accepts a number “n”, and prints all prime numbers between 1 to n.

13. Write a program to read and concatenate two strings without using library function.

14. Write a program to print sum of even numbers and sum of odd numbers from array of integers
which are to be inputed.

15. Write a program to read a list of numbers, print it, then remove duplicate elements from the list and
print the modified list. Use single dimensional Array.

PART -B

2. Write a program to read a string and to find the number of alphabets, digits, vowels, consonants,
spaces and special characters using character functions.

3. Write a program to read a string, reverse it, concatenate the original string with its reverse, and print
length of the original string and the concatenated string using built in functions.

4. Write a program to read a string and find the length of a string without using built in function.

7. Write a program to read elements in a square matrix, display it in the form of a matrix and find and
print its trace.

8. Write a program to read two matrices and perform addition and subtraction on them.

12. Write a C program to create array of structure which stores Roll No, Name and Average marks of
students. Accept n students data and print it in proper format.

13. Write a C program to illustrate difference between structure and union by defining emp_no ,
emp_name, salary as members and display the size of the defined structure.

10. Write a program to check and display if a number is prime by defining isprime( ) function.

11. Write a program using functions that takes in three arguments - a start temperature (in Celsius), an
end temperature (in Celsius) and a step size. Print out a table that goes from the start temperature to
the end temperature, in steps of the step size; converting each Celsius to Fahrenheit.

You might also like