write and algorithm and flowchart to swap two numbers using temporary variables
Answers
Answered by
1
Answer:
Algorithm : b. without using a third variable
Step 1 : Start.
Start 2 : READ num1, num2.
Start 3 : num1 = num1 + num2.
Start 4 : num2 = num1 - num2.
Start 5 : num1 = num1 - num2.
Start 6 : PRINT num1, num2.
Start 7 : Stop.
Explanation:
Follow = back Follow
Answered by
1
Answer:
MARK MY ANSWER AS BRAINLIEST PLEASE
Explanation:
Algorithm : b. without using a third variable
Step 1 : Start.
Start 2 : READ num1, num2.
Start 3 : num1 = num1 + num2
.Start 4 : num2 = num1 - num2.
Start 5 : num1 = num1 - num2.
Start 6 : PRINT num1, num2.
Start 7 : Stop.
Similar questions
Math,
1 month ago
Math,
1 month ago
Sociology,
1 month ago
Math,
3 months ago
Political Science,
3 months ago
Math,
10 months ago
Math,
10 months ago
Social Sciences,
10 months ago