include stdio include stdlib int main int argc char argv int sum kub p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
int x,y,sum=0,i, j, kub=1;
printf("Enter X and Y \n");
printf("X dolshno bit bolshe Y\n");
printf("X = ");
scanf("%d",&x);
printf("Y = ");
scanf("%d",&y);
for (i=y; i<=x; i++)
if(i%2==0)
{
for (j=0; j<3; j++)
{
kub*=i;
}
sum+=kub;
kub=1;
}
printf("%d\n",sum);
system ("PAUSE");
return 0;
}