struct studentDetails {
var stnames: String = "Ram"
var marks1: Int = 89
var marks2: Int = 90
var marks3: Int = 60
func StDetails() {
print("Name is \(stnames) & Marks in physics \(marks1) in chemistry \(marks2) & in Maths is \(marks3)")
}
}
var std = studentDetails(stnames: "Rak" , marks1 : 30 , marks2 : 40 , marks3 : 70)
std.StDetails()
To embed this program on your website, copy the following code and paste it into your website's HTML: