Integers | SoloLearn: Learn to code for FREE!

0

Integers

How do I print 2 + 2 swift keeps printing the answer 4

sum

1/15/2020 3:37:32 PM

R.C.C.

4 Answers

New Answer

+1

print ("2+2")

+1

Have you seen our answer? print("2+2") Edit: or like this let c = "2 + 2" print(c) or like this var c : Int c = 2 + 2 print("2+2=",c)

0

hi guys here is the problem: var c : Int c = 2 + 2 print(c) how do i print 2 + 2?

0

thanks