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

Practice Lab 8 PDF

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

Practice Lab 8 PDF

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

Practice Lab Assignment 8

Practice Lab Assignment 8


For this Practice Lab Assignment, you will write programs in C, making use
of various operators, if else control structures, repetition loops (while,
dowhile, for), switch statements, break and continue statements.
Do not use arrays and any other concept that has not been yet taught in
the class.
Instructions

There are 4 questions in this assignment.


Any discussion with neighbor/or any other student is strictly not allowed.
Mobile phones are not allowed. If found, disciplinary action may be taken.

Due Date: This

is only a Practice Lab so no submission is required.

Grading Criteria
No Grading Criteria.

Programming Questions
1. Write a program to print the following pattern using nested loops:
*
**
***
****
*****
****
***
**
*

2. Write a program to print the following pattern using nested loops:

*
*A*
*A*A*
*A*A*A*

3. Write a program to print the following pattern using nested loops:


1
21
321
4321
54321

4. Write a program to print the following pattern using nested loops:


1
01
10 1
010 1

You might also like