CS1103 Programming and Data Structures Lab LAB Assignment-3
1. Write a C++ program to print the following patterns
a) 1 b) c) 22 333 4444 55555
d) A e) f) AB ABC ABCD ABCDE ABCDEF
g) h)
2. Write a program to display the prime numbers within a given range.
3. Write a program to find out the sum of the following series (up to 10th term): a. ex = 1 + x + x2/2! + x3/3! + … b. cos x = 1 – x2/2! + x4/4! -… + …. c. sin x = x – x3/3! + x5/5! -…+ …