# Lab Manual – Problem Solving Using C – NEP

October 19, 2022Problem Solving Using C – BCA 1st Semester – NEP Lab Manual – Bangalore City University

BCA Lab Manual

Write, and execute C program for the following:

- to read radius of a circle and to find area and circumference
- to read three numbers and find the biggest of three
- to check whether the number is prime or not
- to read a number, find the sum of the digits, reverse the number and check it for palindrome
- to read numbers from keyboard continuously till the user presses 999 and to find the sum of only positive numbers
- to read percentage of marks and to display appropriate message (Demonstration of else-if ladder
- to find the roots of quadratic equation
- to read marks scored by n students and find the average of marks (Demonstration of single dimensional array)
- to remove Duplicate Element in a single dimensional Array
- to perform addition and subtraction of Matrices
- to find factorial of a number
- to generate fibonacci series
- to remove Duplicate Element in a single dimensional Array
- to find the length of a string without using built in function
- to demonstrate string functions
- to read, display and add two m x n matrices using functions
- to read a string and to find the number of alphabets, digits, vowels, consonants, spaces and special characters.
- to Swap Two Numbers using Pointers
- to demonstrate student structure to read & display records of n students
- to demonstrate the difference between structure & union.