By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Yea sry bro but I never touched java and don't know what the code is like, in c++ i could do it in like a few mins :D but if anyone can tell me java is like c++ then i could totally help ya out

example of c++

int year = 0;
cout << "enter 99 to end program" << endl;
while(year != 99)
{
cout << message here << endl;
cin >> year;
leap = year % 4;
if (leap = 0)
{
cout << "Next leap year etc" << endl;
}
else if(leap != 0)
{
cout << Blah blah << endl;
}
}