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

Week2 HomeTask

Uploaded by

azharalikhan1810
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)
6 views1 page

Week2 HomeTask

Uploaded by

azharalikhan1810
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

Home Task

Question No 1:
Write a C++ program that takes two integers as input and outputs their sum.Also,
provide the algorithm and draw a flowchart to illustrate the process.

Question No 2:
Write a C++ program to check if a number is even or odd.Also, provide the
algorithm and draw a flowchart to illustrate the process.

Question No 3:
Write a C++ program to find the largest of three numbers.Also, provide the
algorithm and draw a flowchart to illustrate the process.

Question No 4:
Write a C++ program to check if a number is a prime.Also, provide the algorithm
and draw a flowchart to illustrate the process.

Question No 5:
Write a program to find the maximum of two numbers entered by the user.Also,
provide the algorithm and draw a flowchart to illustrate the process.

Question No 6:
Write a program to calculate the sum of natural numbers up to n.Also, provide
the algorithm and draw a flowchart to illustrate the process.

You might also like