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

Assignment 1

The document assigns 10 programs to draw various shapes using for loops. The programs are due on October 20, 2008. The shapes include rectangles filled with asterisks, numbers increasing across rows, numbers increasing down columns, triangles, and patterns with increasing or decreasing numbers of characters or digits.

Uploaded by

Hasham Mehmood
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Assignment 1

The document assigns 10 programs to draw various shapes using for loops. The programs are due on October 20, 2008. The shapes include rectangles filled with asterisks, numbers increasing across rows, numbers increasing down columns, triangles, and patterns with increasing or decreasing numbers of characters or digits.

Uploaded by

Hasham Mehmood
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Fundamentals and Programming

Assignment-01
Date Assigned: 17-10-2008
Last Date of Submission:20-10-2008
Draw the following shapes using for loops

Program01

Program02

**********
**********
**********
**********
**********

1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10

Program03

1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
51 52 53 54 55 56 57 58 59 60

Program04

Program05

Program06

*
**
***
****
*****

1
12
123
1234
12345

2
4 6
8 10 12
14 16 18
20 22 24 26

Program07
*

Program08

Program09

***
*****
*******
*********
***********

1
123
12345
1234567
123456789

Program10
*

***
*****
*******
*********
***********
*********
*******
*****
***
*

Program11

ABCDEFGHIJKLMNO
ABCDEFGIJKLMNO
ABCDEFJKLMNO
ABCDE KLMNO
ABCD LMNO
MNO
ABC
NO
AB
O
A

1
2 3 4
3 4 5 6 7
4 5 6 7 8 9 10
5 6 7 8 9 10 11 12 13

You might also like