Ways to check divisibility
Ways to check divisibility
- Subject: Ways to check divisibility
- From: "Laine Lee" <email@hidden>
- Date: Thu, 17 May 2007 12:39:38 -0500
Here's one way to check divisibility. What are others?
display dialog "Think of a number between 1 and 42, inclusive." default answer "16"
set aquotriment to text returned of result
if aquotriment div 4 = aquotriment / 4 then
display dialog aquotriment & space & "is divisible by 4."
else
display dialog aquotriment & space & "isn't divisible by 4."
end if
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden