Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.

book
Determine the Correct Arithmetic Operator

Given three integers a, b, and c, return + if the equation a + b = c is true, and - if the equation a - b = c is true

Example 1

Input:

a = 1; b = 2; c = 3

Output:

+

Example 2

Input:

a = 2; b = 9; c = -7

Output:

-
main.cpp

main.cpp

C++

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt