Board Logo
« function which returns no. of days in a month »

Welcome Guest. Please Login or Register.
Nov 24th, 2017, 6:18pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: function which returns no. of days in a month  (Read 331 times)
zzz000abc
Full Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 256
xx function which returns no. of days in a month
« Thread started on: Jul 11th, 2016, 11:54pm »

hi ,
here is a function to return number of days in month
Code:
function damn(n,l)'DAys in a MoNth
'i= month number ranging 1 to 12
'l=1 for leap year 0 otherwise
if  n=2 then
l=l-2
else
l=0
end if
if n<8 then
damn=30+(n mod 2)+l
else
damn=31-(n mod 2)
end if
end function
 

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls