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

Tutorial (31 3 23)

The document outlines several C++ programming tasks, including swapping two numbers, calculating the third angle of a triangle from two given angles, performing arithmetic operations on two integers via command line input, and determining the maximum or minimum of two numbers. It provides examples for the first task and mentions an output screen for the last task. The document serves as a guide for basic C++ programming exercises.

Uploaded by

M K Khaing
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)
8 views1 page

Tutorial (31 3 23)

The document outlines several C++ programming tasks, including swapping two numbers, calculating the third angle of a triangle from two given angles, performing arithmetic operations on two integers via command line input, and determining the maximum or minimum of two numbers. It provides examples for the first task and mentions an output screen for the last task. The document serves as a guide for basic C++ programming exercises.

Uploaded by

M K Khaing
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

1. How to swap two numbers using a C++ program.

Below are the examples:

Input : a = 2, b = 3
Output : a = 3, b = 2
Input : a = 0, b = 1
Output : a = 1, b = 0

2. Write a C++ program to enter two angles of a triangle and find the third
angle.
3. Write a C++ program to find the addition, subtraction, and multiplication of
two integer numbers by using command line input.

4. Write a program to find that the two numbers is maximum or minimum.

5. Write a C++ program ,according the output screen below.

You might also like