Posts

Showing posts with the label Starting With Swift

simple program for the fresher asked in interview

In the previous post i give you simple program that is asked in interview frequently and here the next part of that post in this post we will learn the use of while, repeat- while , for loop , switch and function. the below programs are very easy and these program should be know by the every computer science student who is fresher. To write these program i use the swift programming language and you can use any programming language with you familiar. These program are for the basic concept and increase the idea about programming and improve the idea. and improve the logic the program. (1) use of repeat-while loop to print count func count(num: Int )-> Int {     var n = num     var count = 0     repeat {         n = n / 10         count = count + 1     } while (n > 0)     return count } print ( count (num: 145000331)) Output:- 9 (2) use of the ...
# Simple Program of Swift Asked In InterView. Here i am going to introduce you all with the simple programs thats frequently asked in the interview if you going to interview for the developer . and i choose the swift programming language that is very easy programming language and if you want to became iOS Developer swift is very useful . all program are here very simple and it is for the fresher , college student. if you want to learn swift programming you can start with these programs these programs make you understand the swift programming and give the basic knowledge of programming language. and if you are not interested in the swift take the question and write in the language you prefer like c , c++ and java or any other language . these programs are for the basic understanding and interview asked these questions (1) program to get reminder after divide by 3 in any number func check(num: Int )-> Int {     var n = num     var result = n % 3...