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

Practical Exam 2

The document outlines a practical exam for programming fundamentals, requiring the creation of three C++ programs. The first program generates a multiplication table for a user-input number, the second checks if a user-input integer is even or odd, and the third defines a function to return the sum of two numbers. Each task includes specific requirements and example outputs.

Uploaded by

yasmeensamir2002
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)
7 views1 page

Practical Exam 2

The document outlines a practical exam for programming fundamentals, requiring the creation of three C++ programs. The first program generates a multiplication table for a user-input number, the second checks if a user-input integer is even or odd, and the third defines a function to return the sum of two numbers. Each task includes specific requirements and example outputs.

Uploaded by

yasmeensamir2002
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

🌟 Practical Exam: Fundamentals of Programming

Name: ___________________________

1. Multiplication Table Generator

Write a C++ program that:

 Asks the user to enter a number


 Prints the multiplication table for that number from 1 to 10

📝 Example Output:

Enter a number: 5
5 x 1 = 5
5 x 2 = 10
...
5 x 10 = 50

2. Even or Odd Checker

Write a C++ program that:

 Takes an integer input from the user


 Checks whether the number is even or odd
 Displays the appropriate message

3. Function to Return the Sum of Two Numbers

Create a C++ function that:

 Takes two numbers as arguments


 Returns their sum
 Call the function from main() and display the result

You might also like