Skip to content

Commit

Permalink
Practises
Browse files Browse the repository at this point in the history
  • Loading branch information
skpandey885 committed Dec 12, 2021
0 parents commit 8e6dc08
Show file tree
Hide file tree
Showing 15 changed files with 112 additions and 0 deletions.
1 change: 1 addition & 0 deletions Calculator-Layout-iOS13
Submodule Calculator-Layout-iOS13 added at 3205c1
1 change: 1 addition & 0 deletions Dicee-iOS13
Submodule Dicee-iOS13 added at 8195d0
1 change: 1 addition & 0 deletions I am poor
Submodule I am poor added at 5026d8
1 change: 1 addition & 0 deletions Magic-8-Ball-iOS13
Submodule Magic-8-Ball-iOS13 added at 64a600
66 changes: 66 additions & 0 deletions MyPlayground.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import UIKit
//
//var greeting = "Hello, playground"
//
//print("hello \(55-54) man army")
//
// var a=5
// var b=8
//
// var temp=a
// a=b
// b=temp
//
//// print("The value of a is:\(a)")
//// print("The value of b is:\(b)")
//
//
// var myArray = [1, 2, 3 , 4 ,5]
//
// var secondArray = [ 0,0,0,0 ]
//
//var myCount=0
//
//
//while(myCount<myArray.count-1){
// secondArray[myCount] = myArray[myCount] * myArray[myCount+1]
// myCount+=1
// }
//
// var q=0
//
//print(secondArray)
//
//
//
//
//
//
//
//
//
//
//// var x = 8
//// print(x)
//// var arr = [1,2,3]
//// print(arr[2])
//
//
//
//func getProduct( x: Int, y: Int) -> Int {
// var b = x*y
// return b
// }
//
//


func greeting() {
print("hello")
}

var i=0;
while(i<4){
greeting()
i+=1
}
4 changes: 4 additions & 0 deletions MyPlayground.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios' buildActiveScheme='true' importAppTypes='true'>
<timeline fileName='timeline.xctimeline'/>
</playground>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
17 changes: 17 additions & 0 deletions PasswordGenerator.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import UIKit


var array=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]

var a=Int.random(in: 0...25)
var b=Int.random(in: 0...25)
var c=Int.random(in: 0...25)
var d=Int.random(in: 0...25)
var e=Int.random(in: 0...25)
var f=Int.random(in: 0...25)

var password = array[a]+array[b]+array[c]+array[d]+array[e]+array[f]
print(password)



4 changes: 4 additions & 0 deletions PasswordGenerator.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios' buildActiveScheme='true' importAppTypes='true'>
<timeline fileName='timeline.xctimeline'/>
</playground>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
1 change: 1 addition & 0 deletions RateYourDay
Submodule RateYourDay added at 9eac02
1 change: 1 addition & 0 deletions Xylophone-iOS13
Submodule Xylophone-iOS13 added at 88c53d
1 change: 1 addition & 0 deletions iamrich
Submodule iamrich added at 93100a

0 comments on commit 8e6dc08

Please sign in to comment.