Skip to content

Instantly share code, notes, and snippets.

@TarasShu
Created June 10, 2020 10:46
Show Gist options
  • Save TarasShu/508cc43215ebf093f77f8d6aace6fbe3 to your computer and use it in GitHub Desktop.
Save TarasShu/508cc43215ebf093f77f8d6aace6fbe3 to your computer and use it in GitHub Desktop.
var billElectricity: Double = 1241.7
let repair: Double = 414
let quantityRoomate: Double = 3
let fourMonth: Double = 4
let olegLived: Double = 3
var taras: Double = ((1241.7 - repair)/fourMonth)/quantityRoomate
billElectricity -= taras
var oleg = ((billElectricity/fourMonth)/quantityRoomate)*olegLived
billElectricity -= oleg
var simon = billElectricity / 2
var katiy = simon
if oleg + taras + katiy + simon == 1241.7 {
print("wrong")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment