C programming Tutorial
Tutorial 1
1) Write a C Program to print the following pattern.
*****
*****
*****
*****
*****
2) Write a C Program to print the following pattern.
*
**
***
****
*****
Tutorial 2
1) Write a C Program to print the following pattern.
*
**
***
****
*****
2) Write a C Program to print the following pattern.
*****
****
***
**
*
Tutorial 3
1) Write a C Program to print the following pattern.
*****
****
***
**
*
2) Write a C Program to print the following pattern.
*
**
***
****
*****
Tutorial 4
1) Write a C Program to print the following pattern.
*
**
***
****
*****
****
***
**
*
2) Write a C Program to print the following pattern.
1
23
456
7 8 9 10
11 12 13 14 15
Tutorial 5
1) Write a C Program to print the following pattern.
0
101
21012
3210123
432101234
54321012345
2) Write a C Program to print the following pattern.
1
22
333
4444
55555
Tutorial 6
1) Write C Program to print the following pattern.
EDCBA
EDCB
EDC
ED
E
2) Write a C Program to print the following pattern.
11111
1 1
1 1
1 1
11111
Tutorial 7
1) Write a C Program to print the following pattern.
1
4 9 16
25 36 49 64 81
100 121 144 169 196 225 256
289 324 361 400 441 484 529 576 625
2) Write a C Program to print the following pattern.
1
123
12345
1234567
123456789
1234567
12345
123
1
Tutorial 8
1) Write a C Program to print the following pattern.
1
12
123
1234
12345
2) Write a C Program to print the following pattern.
1
24
369
4 8 12 16
5 10 15 20 25
6 12 18 24 30 36
7 14 21 28 35 42 49
8 16 24 32 40 48 56 64
9 18 27 36 45 54 63 72 81
10 20 30 40 50 60 70 80 90 100
Tutorial 9
1) Write a C Program to print the following pattern.
1 1
12 21
123 321
1234 4321
1234554321
2) Write a C Program to print the following pattern.
1
2*2
3*3*3
4*4*4*4
4*4*4*4
3*3*3
2*2
1
Tutorial 10
1) Write a C Program to print the following pattern.
1 2 3 4 5
6 7 8 9
10 11 12
13 14
15
2) Write a C Program to print the following pattern.
*000*000*
0*00*00*0
00*0*0*00
000***000
Tutorial 11
1) Write a C Program to read array of student structure where structure contains student
details and his marks. Calculate the total marks of each student, percentage , total
marks, Max marks, Min marks and average marks of each subject.
2) Write a C Program to read array of Employee structure where structure contains staff
details and their salary payments, incentives and deductions. Calculate the total salary
to be paid for each employee and net amount to be paid by the organization.
Tutorial 12
1) Write a C Program to read library information in a union and calculate the total cost
of all the books purchased.
2) Write a C Program to read student information into a file and perform operations such
as editing, searching and sorting.