Q.
8 Program to print the sum of first n numbers
using functions.
Code:
Output:
Q.9 Program to print Floyd’s Triangle.
Code:
Output:
Q.10 Program to print 3 digit Armstrong number.
Code:
Output:
Q. 11 Program to print the sum of first n numbers
using Recursion.
Code:
Output:
Q.12 Program to print the factors of a number.
Code:
Output:
Q.13 Program to find the Triangle is valid or not.
Code:
Output:
Q.14 Program to print the greatest of 3 numbers.
Code:
Output:
Q.15 Program to print the Factorial of a numbers.
Code:
Output:
Q.16 Program to print Reverse of a numbers.
Code:
Output:
Q.17 Program to print Sum of the digits of a
numbers.
Code:
Output:
Q.18 Program to print Hollow rectangle.
Code:
Output:
Q.19 Program to print Alphabet square.
Code:
Output:
Q.20 Program to print maximum number in a
given array.
Code:
Output:
Q.21 Program to print Second maximum number
in a given array.
Code:
Output:
Q.22 Program to print product of numbers in a
given array.
Code:
Output:
Q.23 Program to print Squares of first n numbers.
Code:
Output:
Q.24 Program to multiply two matrix.
Code:
Output:
Q.25 Program to print the length of the given
string.
Code:
Output:
Q.26 Program to print the no. of vowels in the
given string.
Code:
Output:
Q.27 Program to print sum of 2 complex numbers.
Code:
Output:
Q.28 Program of Friend function.
Code:
Output:
Q.29 Program of Multilevel Inheritance.
Code:
Output:
Q.30 Program of Overloaded function.
Code:
Output:
S. ASSIGNMEN PAGE DATE OF REMARKS
No. T SUBMISSIO
N
S. ASSIGNMEN PAGE DATE OF REMARKS
No. T SUBMISSIO
N
S. ASSIGNMEN PAGE DATE OF REMARKS
No. T SUBMISSIO
N
Institute of Engineering & Technology
Devi Ahilya Vishwavidyalaya, Indore (M.P)
Introduction to Computer Programming.
{2CORC5}
Submitted To: Submitted By:
Mr. Jay Singh Sir Dewang Parmar
Branch: Electronics & Telecommunication {A}
1st Year
Roll No. : 23T1020