Respuesta :
Answer:
JavaScript:
Let x = 10
Let y = 10
Console.log(x + y)
//outputs 20
C++:
Let x = 10
Let y = 10
The file is Math.cpp so,
std::cout << "" + y + "" + x
g++ Math.cpp -o Maths
./Maths
//Outputs 20
Answer:
#Ask the user for a number
a = int(input("Enter a number: "))
#Ask the user for a number
b = int(input("Enter a number: "))
#Calculate the sum of a and b
sum = a + b
#print the ouput
print(str(a) + " + " + str(b) + " = " + str(sum))