Download as pdf or txt
Download as pdf or txt
You are on page 1of 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