Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
20090727100707MTS 2023 chp 4

20090727100707MTS 2023 chp 4

Ratings: (0)|Views: 65|Likes:
Published by muru85

More info:

Published by: muru85 on Sep 01, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

10/19/2011

pdf

text

original

 
1
MTS 2023Object OrientedProgramming
Control Statements
 
2
Control Structures
A computer can process a program in 3 ways:
Sequence
Selection – the program executes particular statementsdepending on some condition (s)
Repetition – the program repeats particular statements a certainnumber of times depending on some condition (s)
Selection Statements
Using if and if...else
Nested if Statements
Using switch Statements
Conditional Operator 
Repetition Statements
Looping: while, do, and for 
Nested loops
Using break and continue
 
3
Relational Operators
To make decisions, you must be able toexpress conditions and make comparisons
An expression that has a value either trueor falseis calledlogical (Boolean)
Example : i > j , it will have the value true if the value i is greater than the value of j;otherwise it will have the value false

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
Jojo Cansino liked this
Rajesh Verma liked this
Jojo Cansino liked this
Jojo Cansino liked this
shekar_bandi liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->