From e5d48942d968902dd404436a5873430497bea799 Mon Sep 17 00:00:00 2001 From: Amit Anand <140126906+Amitanand0123@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:20:54 +0530 Subject: [PATCH] Create f8ASHf.swift Signed-off-by: Amit Anand <140126906+Amitanand0123@users.noreply.github.com> --- lyan0D/f8ASHf.swift | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lyan0D/f8ASHf.swift diff --git a/lyan0D/f8ASHf.swift b/lyan0D/f8ASHf.swift new file mode 100644 index 0000000..84a681b --- /dev/null +++ b/lyan0D/f8ASHf.swift @@ -0,0 +1,7 @@ +var sum = 0 + +for i in 1...10 { + sum += i +} + +print("The sum of the first 10 natural numbers is: \(sum)")