G L BAJAJ GROUP OF INSTITUTIONS, MATHURA
Session 2025-2026 (Odd Semester)
Assignment 3
Faculty Name: Er. Rahul Gautam Course: B. Tech. Branch: CSE Section: E
Subject (Code): Programming for Problem Solving (BCS101) Year/Sem: I/ I
Date of Publish: 10.11.2025 Last date of Submission: 15.11.2025
1 Write a short notes on BCS101.3, K2
(a) break (b) continue (c) goto (d) do while
2 Write a program to check whether a given number is Palindrome BCS101.3, K6
or not.
3 Write a program to check whether a given number is Prime or not. BCS101.3, K6
4 Write a program to find the Armstrong number up to n. BCS101.3, K6
5 Write a program to print the Pattern BCS101.3, K6
(a) (b) (c) (d)
**** * * *****
*** *** ** ****
** ***** *** ***
* ******* **** ** 1
(e)10 (f) 1 *** *
98 22 ** **
765 333 * ***
4321 4444 ****
55555 *****
6 Write a program to print the sum and average of n numbers BCS101.3, K6
entered by a user.
7 Write a program to add and multiply two matrices. BCS101.3, K6
8 Define the term structure and union with the help of example. and BCS101.3,K2 ,K6
also write the difference between them.
9 Find the sum of the series up to n BCS101.3, K6
1+5+10+15+20+…………..
10 Write a program to find the transpose of matrix. BCS101.3, K6