• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Scan

Can anybody tell me how I can scan an input in swift? In C i used as an example scanf(„%d“,&n);. Thanks

swift
14th Feb 2018, 3:59 PM
kingmonsteryo
1 Answer
+ 1
Does this link help https://stackoverflow.com/questions/24004776/input-from-the-keyboard-in-command-line-application ?
24th Feb 2018, 1:45 AM
Freetoast
Freetoast - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
12 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Where can I learn c#
0 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
best language if i want to learn about AI
0 Votes