IB DP Mathematics-Physics-Computer Science
02/06/2023
Function A and Function B produce the same output, describe their output.
//function A
A=3
B=7
output "A = ",A, "B = ",B
/////process
A=A+B
B=A-B
A=A-B
////////////
output "A = ",A, "B = ",B
/////////////////////////////////////
//function B
A=3
B=7
output "A = ",A, "B = ",B
///////process
TEMP = A
A = B
B = TEMP
///////////////
output "A = ",A, "B = ",B
Want your school to be the top-listed School/college in Dha?
Click here to claim your Sponsored Listing.
Click here to claim your Sponsored Listing.
Category
Website
Address
Phase 3
Dha