954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

plz help

well hi :D
Actually i have a school assignment and i need help with it
i have 2 ques which i am not able to solve so plz help me
Q1)create a program to find wether the entered year id leap or not? :?:
Q2)write a program to find and print maximum and minimum from one dimensional arrays? :?:

help plz
thanks
neha :D

coolgal_neha
Newbie Poster
3 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

What have you tried so far?

w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
 

well hi :D Actually i have a school assignment and i need help with it i have 2 ques which i am not able to solve so plz help me Q1)create a program to find wether the entered year id leap or not? :?: Q2)write a program to find and print maximum and minimum from one dimensional arrays? :?:

help plz thanks neha :D

Just a hint to Q1. if not(int((year/400)=year/400)) then
if(int(year/4)=year/4) then
year = leap year
you'll have to work the exact syntax.
Every 400 years (as in the year 2000, leap year is skipped to get closer to the actual solar date. -dz-

dz

dhz920
Newbie Poster
1 post since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Like this?

Dim Leap As Boolean

Sub FindLeapYear
    Dim Year As Long

        If Year/400 = Int(Year/400) Then
		Leap = False
		Exit Sub
	End If
	
	If Year/4 = Int(Year/4) Then
		Leap = True
	Else
		Leap = False
	End If
End Sub


always avoid complicated statements with too many brackets if you can

Give me a little more info about what you want to do in Q2

w00dy
Junior Poster in Training
70 posts since Jun 2005
Reputation Points: 11
Solved Threads: 2
 

Yes, Please Post your code so that we can take a look at it.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You