Added some basic math that doesn't work (forgot to stage my changes)

This commit is contained in:
xtzws 2025-05-24 00:58:05 -04:00
parent c995648a3e
commit bf890f54a8
No known key found for this signature in database
2 changed files with 28 additions and 2 deletions

View file

@ -1,8 +1,29 @@
//
// Calc.swift
// bignumcalc
// 2025-03-31
//
// Created by Isaac Greene on 2025-03-31.
// The author disclaims copyright to this source code. In place of
// a legal notice, here is a blessing:
//
// May you do good and not evil.
// May you find forgiveness for yourself and forgive others.
// May you share freely, never taking more than you give.
//
import Foundation
var a: Double
var b: Double
var operation: String
print("Enter first number: ")
a = Double(readLine() ?? "") ?? 0
print("Enter operation (+, -, *, /): ")
operation = readLine() ?? ""
print("Enter second number: ")
b = Double(readLine() ?? "") ?? 0
switch operation {
}

View file

@ -6,10 +6,15 @@
objectVersion = 77;
objects = {
/* Begin PBXFileReference section */
6A4665922D9B96F8002F8AE1 /* Calc.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Calc.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXGroup section */
6A46658B2D9B96E2002F8AE1 = {
isa = PBXGroup;
children = (
6A4665922D9B96F8002F8AE1 /* Calc.swift */,
);
sourceTree = "<group>";
};