backup de julho
[h2N7SspZmY.git] / data / cache / 9 / 9f0770ba03afac584b2730de5f77af18.code
blob8f8f977738f5aa2fd311f62c2cf2a8075dbaf963
1 <span class="kw4">int</span> sum2<span class="br0">&#40;</span><span class="kw4">int</span> n<span class="sy0">,</span> <span class="kw4">int</span> m<span class="sy0">,</span> <span class="kw4">int</span> m<span class="br0">&#91;</span>n<span class="br0">&#93;</span><span class="br0">&#91;</span>m<span class="br0">&#93;</span><span class="br0">&#41;</span>
2 <span class="br0">&#123;</span>
3   <span class="kw4">int</span> i<span class="sy0">,</span> j<span class="sy0">,</span> sum<span class="sy0">;</span>
4   <span class="kw1">for</span><span class="br0">&#40;</span>i <span class="sy0">=</span> sum <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&lt;</span> n<span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span>
5     <span class="kw1">for</span><span class="br0">&#40;</span>j <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> j <span class="sy0">&lt;</span> m<span class="sy0">;</span> j<span class="sy0">++</span><span class="br0">&#41;</span>
6       sum <span class="sy0">+=</span> m<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="br0">&#91;</span>j<span class="br0">&#93;</span><span class="sy0">;</span>
7   <span class="kw1">return</span> sum<span class="sy0">;</span>
8 <span class="br0">&#125;</span>
9 &nbsp;
10 <span class="kw4">int</span> sum3<span class="br0">&#40;</span><span class="kw4">int</span> n<span class="sy0">,</span> <span class="kw4">int</span> m<span class="sy0">,</span> <span class="kw4">int</span> p<span class="sy0">,</span> <span class="kw4">int</span> m<span class="br0">&#91;</span>n<span class="br0">&#93;</span><span class="br0">&#91;</span>m<span class="br0">&#93;</span><span class="br0">&#91;</span>p<span class="br0">&#93;</span><span class="br0">&#41;</span>
11 <span class="br0">&#123;</span>
12   <span class="co1">// ...</span>
13 <span class="br0">&#125;</span>