{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab6Loops

# Lab6Loops - Lab Write a program to compute 1 2 3 10 look...

This preview shows page 1. Sign up to view the full content.

Pre-lab: What are nested loops? Give an example where a nested loop is typically used. Write a program to print out the following: (1, 1) (1, 2) (1, 3) (1,4) (1, 5) (1, 6) (1, 7) (2, 1) (2, 2) (2, 3) (2, 4) (2, 5) (2, 6) (2, 7) (3, 1) (3, 2) (3, 3) (3, 4) (3, 5) (3, 6) (3, 7) (4, 1) (4, 2) (4, 3) (4, 4) (4, 5) (4, 6) (4, 7) (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6) (5, 7) (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6) (6, 7)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lab: Write a program to compute 1! + 2! + 3! + . .. 10! look for Factorial online if you are not familiar with the symbol '!' Use loop to print out the following matrix, make your code as simple as possible 1 1 2 3 4 5 6 2 1 2 3 4 5 6 3 2 3 4 5 6 1 4 3 4 5 6 1 2 5 4 5 6 1 2 3 6 5 6 1 2 3 4 (optional) write a program to print out the following: % %%% %%%%% %%%%%%% %%%%% %%% %...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern