0% found this document useful (0 votes)
11 views1 page

PDS Assignment 3

Uploaded by

depanimokshith
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)
11 views1 page

PDS Assignment 3

Uploaded by

depanimokshith
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/ 1

NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL

I B. Tech Computer Science and Engineering


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! -…+ …

You might also like