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
MATLAB CODE TO VERIFY TIME SHIFTING PROPERTY OF DFT
CODE: close all; x=input('Enter the input sequence'); n=input('Enter the delay integer'); x1=length(x); xn=x1+n; ...
Write a program in swift to check the number is palindrome or not.
Code: import UIKit var reversen = 0 var rem = 0 var n = 142 var no = n no=n while n != 0 { rem = n%10 ...
C program for finding binomial distribution Expression.
//C program for finding binomial distribution Expression. #include<stdio.h> #include<conio.h> #include<math.h>...
Write a MATLAB code to perform the contrast stretching on the image. Show the original and stretched image along with their histograms.
CODE: clear all ; close all ; clc; %% Reading an image a=imread( 'cameraman.tif' ); a=double(a); s=size(a); ...
Write a MATLAB code to perform the following gray level transformation and display original image and resultant image.
Write a MATLAB code to perform the following gray level transformation and display original image and resultant image. a. Ide...
MATLAB CODE TO DESIGN A CHEBYSHEV I BANDPASS FILTER
CODE: clear all alphap=2; %passband attenuation in dB alphas=20; %stopband attenuation in dB wp=[.2*pi,.4*pi]; % passband fr...
Write a MATLAB code to perform bit plane slicing operation on the image.
CODE: clear all ; close all ; clc; a=imread( 'cameraman.tif' ); b1=[]; b2=[]; b3=[]; b4=[]; b5=[]; b6=[]...
Write a MATLAB code to perform the zooming and shrinking operation by integer factor.
CODE (FOR ZOOMING): clear all ; close all ; clc; b=imread( 'cameraman.tif' ); s=size(b); c=[]; d=[]; zoom=inpu...
Write a program in swift to check the number is even or odd.
Code: import UIKit var n = 28 // enter your number here if(n%2==0) { print("\(n) is even number.") } ...
Matlab code to verify the adaptive delta modulation
Code: clc clear all; t =0:1/29:1; f=1; x=4*sin(2*pi*f*t); x=[x ones(1,10) x]; y = zeros(1,length(x));...
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