Академический Документы
Профессиональный Документы
Культура Документы
Tutorial 3
AAPP005-3-2
Offered In:
APIIT DIPLOMA IN COMPUTING AND IT
APIIT DIPLOMA IN BUSINESS WITH IT
Prepared by: JK First Prepared on: 01-07-04 Last Modified on: xx-xx-xx
Quality checked by: SVC
Copyright 2004 Asia Pacific Institute of Information Technology
Looping Constructs - Exercise
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 2 (of 10)
Looping Constructs - Exercise
5! = 5 X 4 X 3 X 2 X 1 = 120
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 3 (of 10)
Looping Constructs - Exercise
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 4 (of 10)
Looping Constructs - Exercise
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 5 (of 10)
Looping Constructs - Exercise
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 6 (of 10)
Nested Looping
Sample input:
How many lines of pattern would like to display: 4
Sample output:
1
22
333
4444
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 7 (of 10)
Nested Looping
Sample input:
How many lines of pattern would like to display: 4
Sample output:
/
//
/*/
/**/
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 8 (of 10)
Nested Looping
Sample input:
How many lines of pattern would like to display: 4
Sample output:
1
24
357
4682
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 9 (of 10)
Nested Looping
Sample input:
How many lines of pattern would like to display: 4
Sample output:
4444
333
22
1
AAPP005-3-2 Problem Solving & Program Design Using C Problem Solving Slide 10 (of 10)