import UIKit
class MarksStruct {
var mark: Int
init(mark: Int) {
self.mark = mark
}
}
class studentMarks {
var mark = 300
}
let marks = studentMarks()
print("Mark is \(marks.mark)") //Expressions are not allowed at the top level
Anyone know why I get the error on the last line "Expressions are not allowed at the top level"
and how do I fix it?