0% found this document useful (0 votes)
15 views19 pages

Lab 7

The document discusses 4 programming assignments where students write C++ programs to print patterns, multiplication tables, find prime numbers, replace letters in strings, and draw Pascal's triangle.

Uploaded by

ahmedtarek544a
Copyright
© © All Rights Reserved
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)
15 views19 pages

Lab 7

The document discusses 4 programming assignments where students write C++ programs to print patterns, multiplication tables, find prime numbers, replace letters in strings, and draw Pascal's triangle.

Uploaded by

ahmedtarek544a
Copyright
© © All Rights Reserved
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/ 19

Programming_1

Week 9
Recap
Program 1

Write a program that makes a square pattern of


“*” with a size that is entered by the user.
Program 2

Write a C++ program to print the number


pattern.
Program 3

C++ program that displays the multiplication


tables from 1 to 5 in columns
Program 4
Tracing
result
result
Assignment 1

Write a C++ program that takes a positive integer


n as an input and prints all prime numbers from
1 to n.
Assignment 2

Write a program to read a string then ask the


user about a letter to be modified.

H i S t u d e n t

Replace ‘ t’ with ‘a’

H I S a u d e n a
Bonus assignment

Draw Pascal's Triangle


Thank You…

You might also like