Unsorted List
A program to display the first 10 odd numbers (For Loop).
A program to display the first 10 odd numbers (While Loop).
A program to display the first 10 odd numbers (Do-While Loop).
A program to display all even numbers in the range of 100 to 200 (Do-While Loop).
A program to display the table of any number inputted by the user (Do-While Loop).
A program to display the reverse of a number entered by the user (Do-While Loop).
A program to get 2 numbers inputted and do the operation according to choice of the user (Switch-case Loop).
A program to get 2 values inputted by the user in variables a and b, then swap these values (i.e. the values of variables a & b should interchange) without using a third variable.
A program to display the following series:
* | |||
* | * | ||
* | * | * | |
* | * | * | * |
A program to display the following series:
* | |||
* | * | ||
* | * | * | |
* | * | * | * |
* | * | * | |
* | * | ||
* |
A program to display the following series:
* | * | * | * | * | . | . | . | . | . | . | * |
* | * | * | * | * | . | . | . | . | . | * | |
* | * | * | * | . | . | . | . | . | * | ||
* | * | * | . | . | . | . | . | * | |||
* | * | . | . | . | . | . | * | ||||
* | . | . | . | . | . | * |
where the number of stars in the first row is entered by the user.
A program to display the following series:
* | ||||||
* | * | * | ||||
* | * | * | * | * | ||
* | * | * | * | * | * | * |
* | * | * | * | * | ||
* | * | * | ||||
* |
A program to display the following series:
* | * | |||
* | * | * | * | |
* | * | * | * | * |
* | * | * | * | |
* | * |
A program to display the following series:
* | ||||
* | * | * | ||
* | * | * | * | * |
* | * | * | ||
* |
A program to display the following series:
1 | 2 | 3 | 4 |
1 | 2 | 3 | |
1 | 2 | ||
1 | |||
4 | |||
4 | 3 | ||
4 | 3 | 2 | |
4 | 3 | 2 | 1 |
A program to display the following series:
11,
22, 33, 44, ......,
nn
where
n is a number inputted by the user, do not include the header file math.h.
0,
1, 1, 2, 3, 5, 8, 13, 21, ......., n
where
n is the limit of the series entered by the user.
A program to display the following series:
1, 1/2, 1/3, 1/4, ........., 1/n
where n is a number inputted by the user.
A program to display the following series:
1, 2/2!, 3/3!, 4/4!, ........., n/n!
where n is a number inputted by the user.
A program to display the following series:
1, 2!/22, 3!/33, 4!/44, ........., n!/nn
where n is a number inputted by the user.
3/1, 8/4, 17/9, 34/18, 67/35, ......, x/y
where the user inputs either x or y.
A program to add, multiply, divide or subtract two numbers entered by the user. (Shows methods of passing parameters)
A program to find the sum of first n natural numbers using recursion, where n is entered by the user.
A program to initialize a 1-D array and search for a given element in an array using Binary Search method. (assuming array is sorted in ascending order)
A program to initialize a 2-D array of size 1*10 (i.e. a single column). Store numbers 1 to 10 in the column and display it.
A
program to initialize a 2-D array of 3*4 and display
the output as follows:
Col1 Col2 Col3 Col4
Sum
Row1 1
7 2
9 19
Row2 2
6 4
12 24
Row3 5
3 8
3 19
A
program to declare an array of 10 elements, which does the following
operations according to the user:
a)
Deletes an element at the beginning of array.
b) Deletes an element at the end of array.
c) Deletes an element at the desired position in the array.
The
program has three different functions begin(), end() and pos() for doing the
various functions. The
array is entered in the main program and is passed as call by reference
parameter for doing the various operations.
Note: The
program continues till the user wants.
Assumption: The
deleted element is represented by 0, which
is placed at the end of the array and the value of no element in the array
is element is originally 0.
A program to declare a structure Library with the following data members:
a) |
book_no |
integer |
|
b) |
name |
character array |
|
c) |
author |
character array |
|
d) |
address_publisher |
variable of structure address having three data members |
|
street |
character array |
||
city |
character array |
||
state |
character array |
||
pincode |
long integer |
A
program to implement Linked circular Queues. The program has four different
options given below and it continues till the user wants
a) Insert
b) Delete
c) Display
d) Exit
A menu driven program to create a text file and include a function to read the file content in uppercase.
Book Library (Project).
Payroll (Project).
![]() Programming List |
|
![]() Elementary Programs |