PROGRAMMING WORLD
Home
C
C++
JAVA
Swift
ASP.NET
NETWORK
MATLAB
GATE
DOWNLOAD
Find Factors of given number in swift 3.0
22:25:00
DOWNLOAD
,
Swift
No comments
Code:
import
UIKit
var
n =
12
print
(
"Factors of
\
(
n
) are:\n"
)
for
i
in
1
...
n
{
if
(
n
%i==
0
)
{
print
(
"
\
(
i
) "
)
}
}
Result:
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Social Profiles
Popular
Tags
Blog Archives
Blogger templates
Categories
C
(10)
C++
(7)
DOWNLOAD
(99)
GATE
(6)
iOS app
(1)
JAVA
(1)
MATLAB
(51)
NETWORK
(16)
pass value
(1)
Swift
(8)
swift 4.0
(1)
swift app
(1)
Search This Blog
Blog Archive
►
2018
(1)
►
September
(1)
►
2017
(3)
►
May
(3)
▼
2016
(5)
▼
December
(4)
Check the given number is perfect number or not in...
Find Factors of given number in swift 3.0
Sample demo application with text Field, button an...
Check the number is prime or not in swift 3.0
►
November
(1)
►
2014
(91)
►
October
(16)
►
September
(24)
►
August
(49)
►
February
(2)
0 comments:
Post a Comment