0% found this document useful (0 votes)
34 views

Computer Programing Lab: University of Engineering and Technology Lahore Faisalabad Campus

The document is a computer programming lab report submitted by Summaya Noreen to Mr. Mohsin Sheraz. It contains 34 sections covering programming concepts like if/else statements, for loops, while loops, do/while loops, break, continue, classes, objects, constructors, destructors, and function declarations. Each section provides examples to demonstrate the different programming structures and techniques.

Uploaded by

Nio
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Computer Programing Lab: University of Engineering and Technology Lahore Faisalabad Campus

The document is a computer programming lab report submitted by Summaya Noreen to Mr. Mohsin Sheraz. It contains 34 sections covering programming concepts like if/else statements, for loops, while loops, do/while loops, break, continue, classes, objects, constructors, destructors, and function declarations. Each section provides examples to demonstrate the different programming structures and techniques.

Uploaded by

Nio
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Computer Programing

Lab

Submitted to: Mr. Mohsin Sheraz


Submitted by: Summaya Noreen
Roll No. 2018-MC-283

University of Engineering and Technology


Lahore Faisalabad campus
1
If and Else:

i. Leap year

ii. Grading system

2
iii. Operator function

For loop:

iv. Square of a number

3
v. Table

vi. Add even and odd number

4
While loop:

vii. Factorial of a number

viii. Sum of its digits

5
ix. Terminate loop when use enter an vowel

Do while:

x. Enter only odd number between any two number

6
xi. Enter only even number between any two number

xii. Sum of only positive number

7
Break

xiii.

xiv.

8
xv.

9
xvi.

Continue

xvii.

10
xviii.

xix.

11
Class and creating object:

xx.

12
xxi.

xxii.

Constructor:

xxiii.

13
xxiv.

14
15
16
xxv.

17
Constructor overloading:

xxvi.

xxvii.

18
xxviii.

19
Destructor:

xxix.

xxx.

20
xxxi.

21
Declaring of function outside class:

xxxii.

22
xxxiii.

23
24
25
xxxiv.

26
27

You might also like