0% found this document useful (0 votes)
16 views2 pages

CP Tutorial Solutions

Uploaded by

Mohammed Ammaar
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)
16 views2 pages

CP Tutorial Solutions

Uploaded by

Mohammed Ammaar
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/ 2

BITS PILANI, DUBAI CAMPUS

DUBAI INTERNATIONAL ACADEMIC CITY, DUBAI


FIRST SEMESTER 2024 - 2025

COURSE : COMPUTER PROGRAMMING (CS F111)


COMPONENT : Tutorial# 7 (SOLUTIONS)

Q1. Draw the flowchart to Read 3 numbers (A, B, C) and check whether the input numbers are
Pythagorean Triplets. Output “TRUE” if they are Pythagorean Triplets, else output “FALSE”. A, B, C
are Pythagorean Triplets, if A2 + B2 = C2.
Eg. A=3, B=4 and C=5, then 32 + 42 = 9 + 16 = 25 = 52, So the answer is “TRUE”.

3+2𝑎
Q2. Draw the flowchart for to compute the sum of series given by the ∑𝑛𝑎=0 −1𝑎 2𝑎

1
Q3. Draw a flowchart to reverse a number

***END***
2

You might also like