I want to print "Best Country" based on numbers in swift
for example : - if i enter " 1 " it will print "Best". if i enter " 2 " it will print " Country ". For 1 and 2 it will print " Best Country ".
how to manually enter numbers in swift ?
I want to print "Best Country" based on numbers in swift
for example : - if i enter " 1 " it will print "Best". if i enter " 2 " it will print " Country ". For 1 and 2 it will print " Best Country ".
how to manually enter numbers in swift ?
As per the OP it seems a project with console input/output is desired. To input values from console. You need to create a console based project with swift selected as Language.
Xcode -> New -> Project...
then select appropriate option as in screenshot below :
Press Next and then fill in the required details (project Name etc...)