#include <stdio.h> int main(){ int p=0; int array[15]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; for (int i=0; i<15, i++){ p=p+array[i]; } printf("%d", p); }
Const m=24; var k6,k5,n:integer; begin for k6:=0 to m div 6 do for k5:=0 to (m-k6*6) div 5 do if (m-k6*6-k5*5) mod 2 =0 then<span> n:=n+1; </span>writeln(n); end.