Find the next leap year in C : <p>I'm having trouble with an exercise on my homework.
I have to make a function that tells me when the next leap year is given an <code>n</code> (or <code>n</code> if it's a leap year).</p>

<p>I already tackled the last part, but I'm having trouble with the "next leap year" part. I assume I have to do a cycle? </p>

<p>Here's what I have so far</p>

<pre><code>int next_leapyear(int n) 
{

    if(((n%4==0)&amp;&amp;(n%100!=0))||(n%400==0)) return n;

    else
    while(?){
      n++;
     }

     return n;
}
</code></pre>

<p>I'm just starting to learn this language, so if you guys could keep it simple I would appreciate it</p>
