0% found this document useful (0 votes)
7 views8 pages

Programming Exercises for Beginners

The document contains a list of programming questions that require writing various programs to perform tasks such as mathematical operations, conversions, and data processing. Each question specifies a different programming challenge, including calculating sums, checking for prime numbers, and displaying patterns. The questions cover a wide range of programming concepts and techniques suitable for practice and learning.

Uploaded by

aritradesktop1
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 views8 pages

Programming Exercises for Beginners

The document contains a list of programming questions that require writing various programs to perform tasks such as mathematical operations, conversions, and data processing. Each question specifies a different programming challenge, including calculating sums, checking for prime numbers, and displaying patterns. The questions cover a wide range of programming concepts and techniques suitable for practice and learning.

Uploaded by

aritradesktop1
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

Page 1

34/2, Mitra Para Road, Dakshin Para,


Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Question 1. Write a program to accept two numbers and calculate the summation, Output of question 1.
subtraction, multiplication and division. Input two numbers: 5 2
5+2=7
Question 2. Write a program that will convert Fahrenheit to Celsius. 5–2=3
5 * 2 = 10
Q ues tion 3. Write a program to check an inputted number is odd or even. 5 / 2 = 2.5

Q ues tion 4. Write a program to check an inputted year is leap year or not (without %).
Output of question 10
Question 5. Write a program to find out the bus fare depending on the kilometers Welcome to SBI
traveled. The minimum fare charged is Rs. 3, this minimum fare remains for [Link]. or Input amount : 1565
less of travel. After [Link], the charges are 75 paise per k.m. 1000 X 1
500 X 1
Q ues tion 6. Write a program to accept 3 nos. and display the largest one. 100 X 0
50 X 1
Q ues tion 7. Write a program to accept 3 nos. and display the largest one (without 20 X 0
“AND” operator). 10 X 1
5 X 1
Q ues tion 8. Write a program to accept 3 nos. and display the largest one (without 2 X 0
“AND” operator & without “ELSE” operator). 1 X 0

Q ues tion 9. Write a program to accept 3 nos. and display the median.

Question 10. Write an ATM program

Question 11. Write a program to accept marks of six different subjects including additional subject and calculate the total
marks, average marks and identify the division according to the information given bellow :-
%of marks Division
>=60% 1st div.
>=45% 2nd div.
>=34% 3rd div.
<34% Fail
Note: If the students scores less than 30 in any main subject & less than 35 in additional subject, additional marks shouldn’t be
added into the total marks and the student should be declared “Back”.

Q ues tion 12 . Write a program to display 1,2,3….10. use “goto”.

Q ues tion 13 . Write a program to display 1,2,3….10. use “while”.

Q ues tion 14 . Write a program to display 1,2,3….10. use “do…while”.


Output of question 16
Q ues tion 15 . Write a program to display 1,2,3….10. use “for”. Enter a number: 5
5X1=5
Q ues tion 16 . Write a program to display the table of an inputted number. 5 X 2 = 10
5 X 3 = 15
……..
Q ues tion 17 . Write a program to display the series 1,2,4,8,16….1024. …….
5 X 10 = 50
Q ues tion 18 . Write a program to accept 10 numbers and calculate the average.

Q ues tion 19 . Write a program that will accept your choice "O for Odd" or "E for Even" and a number too. Then the program will
display all the odd numbers or all the even numbers until the number you have entered. At the run time if you input any character
except "O" or "E", the program will display the message "Wrong Input!".

Q ues tion 20 . Write a program to display the series 2,4,8,16….1024.

Q ues tion 21 . Write a program to display the series 1,4,9,16….100.

Q ues tion 22 . Write a program to display the series 100, 98, 95,….10.

Q ues tion 23 . Write a program to display the series 5, 12, 26, 54,…7166.

Q ues tion 24 . Write a program to display the series 1,4,27,256….16777216.


Page 2
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Q ues tion 25 . Write a program to display the series 1, 1, 2, 3,…21.


Question 26. Write a program to print the first ten even terms of the Fibonacci Series. i.e. 0, 2, 8, 34, 144

Q ues tion 27 . Write a program to display the series .3, .33, .333, .3333, .33333, .333333

Q ues tion 28 . Write a program to display the factorial of an inputted number. Output of question 29
Input a no. 4
Q ues tion 29 . Write a program to display the factorial of an inputted number with following 1 X 2 X 3 X 4 = 24
format.

Q ues tion 30 . Write a program to accept 10 numbers and display the Count of ODD nos., Count of EVEN nos., Sum of ODD
nos., Sum of EVEN nos., Average of ODD nos., Average of EVEN nos.

Q ues tion 31 . Write a program to accept 10 numbers and display the largest and smallest nos.

Q ues tion 32 . Write a program to check an inputted number is prime or not.

Q ues tion 33 . Write a program to display all the prime numbers between 1 and 50.
Q ues tion 34 . Write a program to print all the prime numbers composed of only prime digits upto 500.

Q ues tion 35 . Write a program to accept two numbers and calculate the H.C.F.

Q ues tion 36 . Write a program to accept two numbers and calculate the L.C.M.

Q ues tion 37 . Write a program to accept two numbers and calculate the L.C.M and H.C.F.

Q ues tion 38 . Write a program to accept a number and check whether is it a perfect number (6,28,496) or not.

Q ues tion 39 . Write a program to display all the perfect numbers between(1-500). Note
1+2+3=6
1 + 2 + 4 + 7 + 14 = 28
Q ues tion 40 . Write a program that will accept a 3 digit number and will check whether is it
palindrome or not.

Q ues tion 41 . Write a program that will accept any number and will check whether is it palindrome or not
Output of question 42
Q ues tion 42 . Write a program to calculate the sum of factorial value of each Input a no. 54
digit of an inputted number. Sum of factorial value of each digit= 144

Q ues tion 43 . Write a Armstrong number checker program. Note:


1 X 2 X 3 X 4 X 5 = 120
Example of Armstrong nos. 153,370,371 1X2X3X4 = 24
-------------
Note: 13 + 53 + 33 = 153 144

Q ues tion 44 . Write a program to display the following output


Output of question 44
Q ues tion 45 . Write a program to convert an inputted decimal number to binary number.
Input any number: 532
Q ues tion 46 . Write a program to convert an inputted binary number to decimal number. 22

Q ues tion 47 . Write a program for menu driven calculator (use if….else). Note:-
51 + 32 + 23 = 22
Q ues tion 48 . Write a program for menu driven calculator using do…case.

Q ues tion 49 . Write programs to print the following patterns. (use nested loop)
Output Output
Output Output Output Output Output Output * ******
***** * ***** 1 1 1 ** *****
***** ** **** 22 12 23 *** ****
***** *** *** 333 123 456 **** ***
**** ** 4444 1234 7 8 9 10 ***** **
***** * ****** *
Page 3
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Output Output Output Input the height.: 5 Input the height.: 4


* 1
1 2 3 Input a no: 4 Input a no.: 4
*** 234
1 3 2 1 1 56789
2 1 3 12 121 *****
******* 10 11 12 13 14 15 16
2 3 1 123 12321 *********
3 1 2 1234 1234321
3 2 1 123 12321 1
12 121 11
1 1 121
1331

Q ues tion 50 . Using user define function write a program to calculate square of a number

Q ues tion 51 . Write a program to calculate the sum of 3 given numbers using user define function.

Q ues tion 52 . Write a program for menu driven calculator using user define function.

Q ues tion 53 . Write a program using user define function to show fibonacy series

Q ues tion 54 . Using array write a program to calculate the average of 10 numbers given by the user.

Question 55. Write a program to accept 10 numbers and display those number in reverse way and calculate the sum of
alternate numbers from reverse way.

Q ues tion 56 . Write a program to accept 5 characters in an array and display these in reverse order.
Output of question 55
Output of question 61 INPUT 1 NUMBER: 8
Enter the no of bits you want: 3 INPUT 2 NUMBER:
Output10of question 56
Input digit 1 of 1st number. 1 INPUT 3 NUMBER: 4
Enter a character: O
Input digit 2 of 1st number. 1 INPUT 4 NUMBER: 1
Enter a character: R
Input digit 3 of 1st number. 0 INPUT 5 NUMBER: 7
Enter a character: T
Input digit 1 of 2nd number. 1 INPUT 6 NUMBER: 3
Enter a character: E
Input digit 2 of 2nd number. 0 INPUT 7 NUMBER: 12
Enter a character: M
Input digit 3 of 2nd number. 1 INPUT 8 NUMBER:
METRO 5
Numbers given: INPUT 9 NUMBER: 6
110 INPUT 10 NUMBER: 2
101 2 6 5 12 3 7 1 4 10 8
Sum:1011
TOTAL: 21
Q ues tion 57 . Write a program that will find out the largest and smallest
numbers from any 10 nos. given by the user (use array).

Q ues tion 58 . Write a program using user define function that will find out the largest and smallest numbers from any 10 nos.
given by the user.

Q ues tion 59 . Write a program that will convert any decimal number to binary number(use array).

Q ues tion 60 . Write a program that will convert any binary number to decimal number (use array).

Q ues tion 61 . Write a program to calculate the binary summation Output of question 64
Enter your name: Samir Kumar Ray
Q ues tion 62 . Write a program that will count the number of vowels from a S.K.R.
sentence.

Q ues tion 63 . Write a program that will count the number of words from Output of question 65
a sentence. INPUT YOUR FULL NAME: samir kumar ray
S. K. Ray
Q ues tion 64 . Write a program to accept a name and display it in
abbreviate form.
Page 4
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Q ues tion 65 . Write a program to accept a name and display it in abbreviate form except title.
Q ues tion 66 . Write a program that will count the number of vowels from a sentence. (use pointer)

Q ues tion 67 . Write a program to accept a string or sentence and display


the ASCII value of each character. Output of question 67
Input a string or sentence: Ab 12
Q ues tion 68 . Write a program that will check an inputted number is binary 65
or not. 98
32
49
Q ues tion 69 . Write a toggle case converter program.
50
Q ues tion 70 . Write a program that will check an inputted character is a
digit or symbol or alphabet. (use liabrary function)
Output of question 69
Q ues tion 71 . Write a program to count number of Write a sentence: Soft Byte Computer, Mob.-9836272558.
vowels, consonants, words, spaces, digits & symbols. After toggling: sOFT bYTE cOMPUTER, mOB.- 9836272558.
(use liabrary function)

Q ues tion 72 . Write a program to count number of vowels, consonants, words, spaces, digits & symbols. (without liabrary
function)

Q ues tion 73 . Write a program that will accept ASCII value and will return the ASCII character.

Q ues tion 74 . Write a program to check an inputted word is palindrome or not. (use library function)

Q ues tion 75 . Write a program to check an inputted word is palindrome or not.


(without liabrary function) Output of question 76
Enter a sentence or word: Krishna
Q ues tion 76 . Write a program to accept any word or sentence and display it in Output in Pig Latin form: ishnaKray
Pig Latin form.

Q ues tion 77 . Write programs to accept any word or sentence and display in following
patterns. Input a word: SAMIR
S
E n t e r a n y wo r d o f s e n t e n c e : R A J U Enter any word: RAJU A
R R SAMIR
A A R A I
J J J R A J R
U U U U
R A J U

Enter any word of sentence: RAJU Enter any word of sentence: RAJU
R R
R A R A
R A J R A J
R A J U R A J U
R A J
R A
Q ues tion 78 . Write a program to accept 10 numbers and sort R
these numbers in descending order.
Question 79. Write a program to accept an array of N integers from the user and sort them in ascending order of their sum of
digits. E.g. Say the input numbers are 23, 336, 85, 162, 21, 4762, 6, 78, 54, then the sum of
digits for the above numbers would be 5, 12, 13, 9, 3, 19, 6, 15, 9 respectively. Hence the final Output of question 82
sorted array should be 21, 23, 6, 162, 54, 336, 85, 78, 4762. ABCDEFGFEDCBA
ABCDEF FEDCBA
Q ues tion 80 . Write a program to accept 10 numbers in two separate arrays and after then ABCDE EDCBA
merge and sort these numbers.
ABCD DCBA
ABC CBA
Q ues tion 81 . Write a program to accept 5 numbers and sort these numbers in 3 different
sorting techniques (Bubble, Selection, Insertion) AB BA
A A
Page 5
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Q ues tion 82 . Write a program to display this pattern.

Q ues tion 83 . A cricket kit supplier in Jalanghar sells Bats, Wickets, Pads & Balls. Write a program to generate a sales bill using
the format given below. Inputs from the console are date of purchase, name of the buyer, price of each item. Calculate the total
sale amout and add 17.5% sales tax if total sale amount is more than Rs.3000, add 12% if total sale amount is greater than
Rs.1500 and add 7% if otherwise.

Q ues tion 84 . Write a program to accept N numbers of names and display those names in reverse order.

Output of question 80 12345 54321


Input values for 1st array. Output of question 81 1234 4321
Input a no. 5 You have to input 5 numbers 123 321
Input a no. 2 Input number 1 : 5 12 21
Input a no. 51 Input number 2 : 21 1 1
Input a no. 12 Input number 3 : 65 1 1
Input a no. 4 Input number 4 : 45 12 21
Input values for 2nd array. Input number 5 : 3 123 321
Input a no. 15 Sorting 1234 4321
Input a no. 22 1. Bubble 12345 54321
Input a no. 63 2. Selection
Input a no. 1 3. Insertion Input a word: RAJU
Input a no. 2 Enter your choice: 2
After merge the sorted output is: 3 5 21 45 65 RAJU UJAR
1, 2, 2, 4, 5, 12, 15, 22, 51, 63 RAJ JAR
RA AR
Output of question 83. R R
Cash Memo R R
____________________________________________________________________ RA AR
Name of the customer: Samir Ray Date:12/10/2008 RAJ JAR
____________________________________________________________________ RAJU UJAR
[Link]. Item Price Quantity Amount
____________________________________________________________________
1 Bats 225.00 10 2250.00
2 Balls 90.00 7 630.00
3 Pads 150.85 4 603.40
____________________________________________________________________
Total amount 3483.40
Tax 17.5% 609.59
T o t a l p a ya b l e a m o u n t 4092.99
____________________________________________________________________

***THANK YOU VISIT AGAIN***

Q ues tion 85 . Write a program to display all the twin prime numbers(3 5)(5 7)(11 13)(17 19)(29 31)……. between (1 and 100).
Output of question 86 & 87
Q ues tion 86 . Write a program to accept a E n t e r a n y s e n t e n c e : W e l c o m e t o S o f t B yt e C o m p u t e r C e n t r e
sentence and display the 1st longest word. 1 s t l o n g e s t wo r d o f t h e s e n t e n c e i s : S o f t B y t e
Q ues tion 87 . Write a program to accept a
sentence and display the 1st longest word. (without library function)

Q ues tion 88 . Write a program to accept Output of question 88


any sentence and display words in reverse
Enter any sentence: Welcome to SoftByte Computer Centre.
order at its original position.
emocleW ot etyBtfoS retupmoC .ertneC
Q ues tion 89 . Write a program to accept
12 numbers in a 2D array and display the output in matrix format with 3 columns X 4 rows.

Q ues tion 90 . Write a program to accept 12 character one by one and display these in matrix format (3columns X 4 rows) in
reverse order.

Q ues tion 91 . Write a program to accepet a sentence and display output in paragraph format (display 15 characters in each row
with different colors)
Page 6
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Q ues tion 92 . Write a program to accept 9 numbers in a 2D array and display the output in matrix format with 3 columns X 3
rows and calculate the sum of left and right diagonal.

Q ues tion 93 . Write a program to accept 9 numbers in a 2D array and display the output in following pattern.

Q ues tion 94 . Write a program to accept N numbers of names and display those names in reverse order.

Q ues tion 95 . Write a program to search the position of an entered name from a entered list of N numbers.
Output of question 90
Input any character: a
Output of question 96
Input any character: m Output of question 92 Input a name: SAMIR
Input any character: H Input any no. 5 Input a name: RINKU
Input any character: P Input any no. 65 Input a name: TATAI
Input any character: 5 Input any no. 12 Input a name: CHIKU
Input any character: & Input any no. 54 Input a name: SAMRAT
Input any character: K Input any no. 10 Input a name: NAMITA
Input any character: u Input any no. 15 Input a name: RAJU
Input any character: $ Input any no. 52 Input a name: SANTOSH
Input any character: 6 Input any no. 63 Input a name: MONA
Input any character: # Input any no. 21 Input a name: MIRA
Input any character: B 5 65 12 After sorting:-
B#6 54 10 15 CHIKU, MIRA, MONA, NAMITA, RAJU, RINKU,
$uK 52 63 21 SAMIR, SAMRAT, SANTOSH, TATAI,
&5p Sum of left diagonal = 36
Hma Sum of right diagonal = 74

Q ues tion 96 . Write a program to accept 10 names and sorts them alphabetically.

Q ues tion 97 . Write a program using structure to accept name, price and quantity of 5 items and calculate the total cost.

Q ues tion 98 . Write a program to store name, address, phone no. of 5 persons after then ask a name, if the inputted name is
found in the previous list show the phone no. otherwise display the messege “Record doesn't exist”.
Q ues tion 99 . Write a program to count same letter in a given sentence.
Q ues tion 10 0 . Write a program to arrange the entered word / sentence in alphabeic order.

Q ues tion 10 1 . Write a program to accepet a file name and display the contents of that file.

Output of question 89
Input any no. 5 Output of question 95 Output of question 93
Input any no. 65 How many names you want to input? 5 Input any no. 5
Input any no. 12 Input a name: SAMIR Input any no. 65
Input any no. 654 Input a name: TATAI Input any no. 12
Input any no. 10 Input a name: CHIKU Input any no. 54
Input any no. 15 Input a name: MONA Input any no. 10
Input any no. 52 Input a name: SANTOSH Input any no. 15
Input any no. 63 Input any no. 52
Input any no. 521 Input any name that you have entered Input any no. 63
Input any no. 36 preveously: TATAI Input any no. 21
Input any no. 16 5 65 12
Input any no. 9 The name is 2 position in the list. 10 15
5 65 12 21
654 10 15 Out put of question 99
52 63 521
36 16 9 Input a sentence or word: RAMAYAN Output of question 100
R=1
A=3 Input a sentence: Hello I am Raju
M=1 aaeHIjllmoRu
Y=1
N=1
Page 7
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Question 102. Write an ATM program using array.


Question 103. Write a program to reverse a string using user defined function.
Question 104. Write a program using structure to accept marks of 4 different subjects of 4 students and show the top scorer of
each subjects.
Question 105. Write a program to accepet 10 numbers in an array and store all the even numbers to a new array and all the odd
numbers to another new array.
Question 106. Suppose that two arrays, ‘a’ and ‘b’ contains two sets of integers. Neither of these sets contains any duplication.
Write a program to find out the union of these two sets. For example, if ‘a’ is {2,7,1,5} and ‘b’ is {9,2,8,5} then their union is
{2,7,1,5,9,8}
Question 107. Write a program to accept any sentence and convert it in uppercase, lower case, title case, sentence case and
toggle case.
Question 108. Write a program using structure to accept students neme, roll, name of enrollment centre and marks of 5 different
subjects and find out the top scorer.
Question 109. Write a program to accept students neme, roll, name of enrollment centre and marks of 5 different subjects and
find out the top scoreeer. (use structure and user define function).
Question 110. Write a program to accept numbers in two separate (3 X 3) matrix and multiply them.

(A1 * X1) + (B1 * X2) + (C1 * X3) Æ (1 + 8 + 21 = 30)


1 2 3 1 2 3 1 2 3 (A1 * Y1) + (B1 * Y2) + (C1 * Y3) Æ (2 + 10 + 24 = 36)
(A1 * Z1) + (B1 * Z2) + (C1 * Z3) Æ (3 + 12 + 27 = 42)
A 1 2 3 X 1 2 3 A 30 36 42 (A2 * X1) + (B2 * X2) + (C2 * X3) Æ (4 + 20 + 42 = 66)
(A2 * Y1) + (B2 * Y2) + (C2 * Y3) Æ (8 + 25 + 48 = 81)
B 4 5 6 Y 4 5 6 B 66 81 96 (A2 * Z1) + (B2 * Z2) + (C2 * Z3) Æ (12 + 30 + 54 = 96)
(A3 * X1) + (B3 * X2) + (C3 * X3) Æ (7 + 32 + 63 = 102)
C 7 8 9 Z 7 8 9 C 102 126 150 (A3 * Y1) + (B3 * Y2) + (C3 * Y3) Æ (14 + 40 + 72 = 126)
(A3 * Z1) + (B3 * Z2) + (C3 * Z3) Æ (21 + 48 + 81 = 150)
ST nd
1 Matrix 2 Matrix Resultant matrix

Question 111. Write a program to accept numbers in two separate (3X3) matrix and calculate the summation of two tables.

1 5 3 14 51 13 15 56 16
10 7 9 11 2 19 21 9 28
12 8 4 1 25 3 13 33 7
Table1 + Table2 = Table3

Question 112. Write a program to accept 9 numbers in a 3 X 3 matrix and calculate the summation of each row and columns.
Sum of the element of row no.1 = 9
Sum of the element of row no.2 = 26
1 5 3 Sum of the element of row no.3 = 24
10 7 9 Sum of the element of col no.1 = 23
12 8 4 Sum of the element of col no.2 = 20
Sum of the element of col no.3 = 16

Question 113. Write a program to accept 12 numbers in 3 X 4 matrix and after transpose display the numbers in 4 X 3 matrix.

7 5 2 6 7 9 6

9 12 3 8 5 12 10

6 10 22 4 2 3 22
6 8 4
Page 8
34/2, Mitra Para Road, Dakshin Para,
Barasat, Kolkata 700124.
Phone- 9836272558 / 2552-1527

Question 114. Write a program to accept a number and display it in reverse order (without array).
Question 115. Write a program to display pascal triangle.
Pascal triangle
Question 116. Write a program to store name of 5 players and their scores of 5 matches, then 1
input any players name and match number to get his score. 1 1
1 2 1
Question 117. Write a program to accept 2 nos. and swap them without 3rd variable. 1 3 3 1
Question 118. Write the following pattern programs.
Output of question no. 116
1 0 123454321
101 010 1234 4321 Pl No. Name M1 M2 M3 M4 M5
10101 01010 123 321 1 SOURAV 12 50 36 95 75
1010101 0101010 12 21
101010101 010101010 1 1
2 SACHIN 123 3 75 17 21
1010101 0101010 12 21
10101 01010 123 321
101 010 1234 4321 3 DRAVID 29 0 32 97 45
1 0 123454321
4 LAXMAN 21 74 75 0 0
Question 119. Write a program using user define function to accept a string and
count the length of the string. 5 DHONI 55 87 23 20 46

Question 120. Write a program to convert decimal value to hexadecimal value. Enter player name: LAXMAN
Question 121. Write a program to accept any word and display it in word. Enter match no. 2

Output of question 121 Output of question 121 Player No. = 4


Enter amount: 1520 Enter amount: 1520 Player name = LAXMAN
One Five Two Zero One Thousand Five Hundred Twenty
Score of M2 = 74

Question 122. Write a program to accept 9 numbers in 3 X 3 matrix and calculate the sum of each rows & columns.

Output of question no. 122


Enter a no. 5 Output of questions 123 & 124
Enter a no. 3 Enter 3 nos. 5 87 20
Enter a no. 1 5 3 1 9 5 20 87
Enter a no. 2 5 87 20
2 4 9 15
Enter a no. 4 20 5 87
Enter a no. 9 6 8 7 21 20 87 5
Enter a no. 6 87 5 20
Enter a no. 8 13 15 17 45 87 20 5
Enter a no. 7

Question 123. Write a program to accept any 3 numbers and display all unique Output of question 125
combinations (without array). Input a no. between 1-5: 4
Question 124. Write a program to accept any 3 numbers and display all unique 1
combinations (using array). 121
12321
Question 125. Write the following pattern program. 1234321
12321
121
1

You might also like