A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,12 @@
|
|||
set n1 to text returned of (display dialog "Enter the first number:" default answer "") as integer
|
||||
set n2 to text returned of (display dialog "Enter the second number:" default answer "") as integer
|
||||
set msg to {n1}
|
||||
if n1 < n2 then
|
||||
set end of msg to " is less than "
|
||||
else if n1 = n2 then
|
||||
set end of msg to " is equal to "
|
||||
else if n1 > n2 then
|
||||
set end of msg to " is greater than "
|
||||
end if
|
||||
set end of msg to n2
|
||||
return msg as string
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
set n1 to text returned of (display dialog "Enter the first number:" default answer "") as integer
|
||||
set n2 to text returned of (display dialog "Enter the second number:" default answer "") as integer
|
||||
if n1 < n2 then return "" & n1 & " is less than " & n2
|
||||
if n1 = n2 then return "" & n1 & " is equal to " & n2
|
||||
if n1 > n2 then return "" & n1 & " is greater than " & n2
|
||||
Loading…
Add table
Add a link
Reference in a new issue