//: Playground-noun:a Place where people can playImport UIKit//the use of the----------operator---------//1. Assignment OperatorsvarA =0varb =1//The assignment operator does not return a value and cannot be used as a condition to determine the manifestation of swift securityb =a//2. Arithmetic OperatorsLet sum =9+4Let min=9-4Let mul=9*4Let div=9/4Let mod=9%4//The remainder operator can be used for floating-point numbersLet mod2 =8.0%2.5//self-increment self-reduction//Unary minus operatorLet C =3varMINUSB =-C//3. Compound Assignment OperatorsvarD =4D+=5//c = b + = 1//if B = a {// // //}//4. Comparison Operators//5. Logical OperatorsvarMale =false//take non-operators only for expressions of type boolif!Male {print ("She's a girl .")}//6. Three mesh operatorvarisreweeted =true;varFontSize = isreweeted? the: - //grammatical requirements? There must be a space in front
Swift operator uses _02_swift base data type