Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 1
BCS 151 / BCS 251 : PROGRAMMING FOR PROBLEM SOLVING LAB
S.NO. NAME OF THE PROGRAM
a) Write a C program that accept the marks of 5 subjects and find the sum and 1 percentage marks by the students. a) Write a C program to generate the first n terms of the Fibonacci sequence 2 b) Write a C program to generate prime numbers between 1 to n. a) Write a C program to check whether the given number is perfect or not 3 b) Write a C program to check whether the given number is strong or not 4 a) Write a C program perform arithmetic operations using switch statement. a) Write a C program to find factorial of a given integer using non-recursive function 5 b) Write a C program to find factorial of a given integer using recursive function a) Write C program to find GCD of two integers by using recursive function. 6 b) Write a C program to find the largest and smallest number in a list of integers. a) Write a C program to perform addition of two matrices. 7
8 a) Write a C program using function to perform multiplication of two matrices.
a) Write a C program to perform linear search (without using external function). 9 a) Write a C program to sort an array or list. (using bubble/ insertion /selection 10 sort) a)a) Write a C program to swap the values of two variables using 11 b) (i) Call by value (ii) Call by reference a) Write a C program using user-defined functions to determine whether the given 12 string is palindrome or not.
a) Write C program to count the number of lines, words and characters in a
13 given text. b) Write a C program to find the sum of integer array elements using pointers.
a) Write a C Program to Calculate Total and Percentage marks of a student using