Week2 HomeTask
Week2 HomeTask
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.